CLI

CLI Cheat Sheet

Quick reference for the most common Antelopejs CLI commands you'll use in your daily workflow.

Installation

npm install -g @antelopejs/core   # Install globally with npm
yarn global add @antelopejs/core  # Or with yarn
pnpm add -g @antelopejs/core      # Or with pnpm

Project Commands

CommandDescription
ajs project init my-appCreate a new project
ajs project runRun your project
ajs project run --watchRun with auto-reload when files change
ajs project modules add @ajs/apiAdd a module to your project
ajs project modules remove @ajs/apiRemove a module from your project
ajs project modules updateUpdate all modules
ajs project modules fixFix missing dependencies
ajs project modules listList all installed modules
ajs project logging showShow logging configuration
ajs project logging setConfigure logging settings

Module Commands

CommandDescription
ajs module init my-moduleCreate a new module
ajs module test my-moduleRun module tests
ajs module imports listList all imported interfaces
ajs module imports add database@1Add interface to module
ajs module imports add database@1 --optionalAdd optional interface to module
ajs module imports add database@1 --skip-installAdd interface without installing files
ajs module imports remove database@1Remove interface from module
ajs module imports updateUpdate all imported interfaces
ajs module imports update --skip-installUpdate interfaces without installing files
ajs module imports installInstall all imported interfaces
ajs module exports set src/interfacesSet interfaces export path
ajs module exports generateGenerate module exports

Configuration

CommandDescription
ajs config showShow all current settings
ajs config get gitGet a specific setting
ajs config set git <url>Change a setting
ajs config set packageManager pnpmSet package manager
ajs config resetReset to default settings

General Options

Many commands support these common options:

OptionDescription
--helpShow help for a command
--project or -pSpecify project directory
--env or -eSpecify environment
-v, --versionShow version number

Quick Examples

Create and run a new project

ajs project init my-app
cd my-app
ajs project run --watch

Add modules to your project

ajs project modules add @ajs/api @ajs/auth-jwt

Create a new module

ajs module init my-module
ajs module imports add database@1
You can run any command with --help to see all available options and examples.