CLI

Project Commands

Here's how to create and manage your Antelopejs projects using the CLI - from starting new projects to running them and managing modules.

Project Management

These commands help you work with your Antelopejs projects.

project init

Creates a new project.

ajs project init <project>

Shortcuts:

ajs p init
ajs p i

What it does:

Walks you through setting up a new project. It creates the antelope.json file and helps you set up your main module.

Arguments:

ArgumentDescriptionRequired
<project>Name of your projectYes

Example:

ajs project init my-app

project run

Runs your project.

ajs project run

Shortcuts:

ajs p run
ajs p r

What it does:

Starts your Antelopejs app by loading all the modules listed in your project.

Options:

OptionDescriptionDefaultShortcutEnvironment variable
--projectWhere your project is.-pANTELOPEJS_PROJECT
--envWhich environment to run--eANTELOPEJS_LAUNCH_ENV
--watchAuto-reload when files changefalse-w-

Example:

ajs project run --watch --env development

Module Management

These commands help you add, remove, and update modules in your project.

project modules add

Adds modules to your project.

ajs project modules add <modules...>

Shortcuts:

ajs p modules add
ajs p m add

What it does:

Gets the modules you want and adds them to your project.

Arguments:

ArgumentDescriptionRequired
<modules...>Modules to add (list them)Yes

Options:

OptionDescriptionDefaultShortcutEnvironment variable
--projectWhere your project is.-pANTELOPEJS_PROJECT
--envWhich environment to use--eANTELOPEJS_LAUNCH_ENV
--modeHow to get the module (npm/git/local/dir)npm-m-

Example:

ajs project modules add @ajs/api @ajs/auth --mode npm

project modules remove

Takes modules out of your project.

ajs project modules remove <modules...>

Shortcuts:

ajs p modules remove
ajs p m remove

What it does:

Removes modules you no longer need from your project.

Arguments:

ArgumentDescriptionRequired
<modules...>Modules to remove (list them)Yes

Options:

OptionDescriptionDefaultShortcutEnvironment variable
--projectWhere your project is.-pANTELOPEJS_PROJECT
--envWhich environment to use--eANTELOPEJS_LAUNCH_ENV

Example:

ajs project modules remove @ajs/auth

project modules update

Updates modules to newer versions.

ajs project modules update <modules...>

Shortcuts:

ajs p modules update
ajs p m update

What it does:

Gets the latest version of modules and updates them in your project.

Arguments:

ArgumentDescriptionRequired
<modules...>Modules to update (list them)Yes

Options:

OptionDescriptionDefaultShortcutEnvironment variable
--projectWhere your project is.-pANTELOPEJS_PROJECT
--envWhich environment to use--eANTELOPEJS_LAUNCH_ENV

Example:

ajs project modules update @ajs/api

project modules fix

Helps fix missing dependencies.

ajs project modules fix

Logging Management

These commands help you manage logging for your project.

project logging show

Displays the current logging configuration of your Antelopejs project.

ajs project logging show

Aliases:

ajs p logging show
ajs p l show

Options:

OptionDescriptionDefaultAliasEnvironment variable
--projectPath to Antelopejs project.-pANTELOPEJS_PROJECT
--envLaunch environment--eANTELOPEJS_LAUNCH_ENV

Example:

ajs project logging show

project logging set

Modifies the logging configuration of your Antelopejs project.

ajs project logging set

Aliases:

ajs p logging set
ajs p l set

Description:

This command allows you to modify various settings of the current logging configuration for your Antelopejs project.

Options:

OptionDescriptionDefaultAliasEnvironment variable
--projectPath to Antelopejs project.-pANTELOPEJS_PROJECT
--envLaunch environment--eANTELOPEJS_LAUNCH_ENV
--enableEnable logging---
--disableDisable logging---
--enableModuleTrackingEnable module tracking---
--disableModuleTrackingDisable module tracking---
--includeModuleInclude logging of a specific module---
--excludeModuleExclude logging of a specific module---

Example:

ajs project logging set --enable --includeModule api