[data-reveal]{opacity:1!important;transform:none!important}
CLI Reference

Cheat Sheet

Quick reference for every AntelopeJS CLI command, option, and common workflow.

Installation

Package ManagerCommand
npmnpm install -g @antelopejs/core
yarnyarn global add @antelopejs/core
pnpmpnpm add -g @antelopejs/core

Project Commands

CommandDescription
ajs project init <project>Create a project
ajs project dev [options]Run the project in development mode
ajs project run [options]Same as ajs project dev (former name)
ajs project build [options]Build the project for production (build.json)
ajs project start [options]Start the project from its build
ajs project modules add <modules...>Add modules to the project
ajs project modules remove <modules...>Remove modules from the project (alias: rm)
ajs project modules listList the modules of the project (alias: ls)
ajs project modules update [modules...]Update npm modules to their latest version
ajs project modules installAdd modules for unresolved interfaces
ajs project logging showShow the logging settings (alias: ls)
ajs project logging setChange the logging settings

Module Commands

CommandDescription
ajs module init <path>Create a module from a template
ajs module test [path]Run the tests of a module

Config Commands

CommandDescription
ajs config showShow every CLI setting
ajs config get <key>Print one CLI setting
ajs config set <key> <value>Change one CLI setting
ajs config resetReset every CLI setting to its default

Other Commands

CommandDescription
ajs update [plugin]Update the CLI and its global plugins
ajs pluginsList official plugins

General Options

OptionDescription
-h, --helpShow help for a command
-v, --versionPrint the version
--verbose [=channels]Print TRACE logs and full error details; scope to a comma-separated channel list
-q, --quietPrint only results, warnings and errors (also ANTELOPEJS_QUIET=1)
--no-colorDisable colors (also NO_COLOR=1)
-j, --jsonPrint the result as JSON (modules list, logging show, config show/get, plugins)

Set AJS_NO_UPDATE_CHECK=1 to turn off the update notice.

Common Dev Options

These options are shared across ajs project dev, ajs project run, ajs project build, and ajs project start:

OptionAvailable InDescription
-p, --project <path>dev, build, startPath of the project folder (default: current directory)
-e, --env <environment>dev, build, startEnvironment of antelope.config.ts to use
-c, --concurrency <number>dev, startNumber of parallel module loads
-w, --watchdevReload modules when their files change (HMR)
--inspect [host:port]devEnable the Node.js inspector
-i, --interactivedevOpen a REPL with the project loaded
--refresh-configstartStart with the configuration resolved at start

Quick Workflows

New Project

Create a project and start developing with HMR:

ajs project init my-project
cd my-project
ajs project dev --watch

In scripts and CI, answer every question with a flag:

ajs project init my-project --template "Blank Typescript" --pm pnpm --no-git-init

Build and Deploy

Generate production artifacts and start the application:

ajs project build -e production
ajs project start -e production

Add Modules

Install modules from npm, local paths, or auto-detect from interface imports:

# Add from npm (default mode)
ajs project modules add @antelopejs/api

# Add a local module
ajs project modules add ./modules/auth --mode local

# Auto-install from interface imports
ajs project modules install

Create and Test a Module

Create a module from a template and run its tests:

ajs module init ./modules/my-module
ajs module test ./modules/my-module

Update Modules

Check for available updates and apply them:

# Preview updates
ajs project modules update --dry-run

# Apply updates
ajs project modules update

Configure Logging

Enable logging, change the DEBUG template and inspect the result:

# Enable logging
ajs project logging set --enable

# Use a custom template for DEBUG lines
ajs project logging set --level debug --format "[{{DATE}}] {{ARGS}}"

# Show DEBUG and TRACE lines while running the project
ajs project dev --verbose

# Check the current logging configuration, templates included
ajs project logging show --json