CLI

Configuration

Here's how to view and change your CLI settings.

Configuration Commands

The CLI has a few simple commands to help you manage your settings.

config show

Shows all your current settings.

ajs config show

config get

Gets the value of one specific setting.

ajs config get <key>

Arguments:

ArgumentDescriptionRequired
<key>The setting you wantYes

Example:

ajs config get git

config set

Changes a setting to a new value.

ajs config set <key> <value>

Arguments:

ArgumentDescriptionRequired
<key>The setting to changeYes
<value>The new valueYes

Example:

ajs config set git https://github.com/myorg/interfaces.git

config reset

Resets configuration to default values.

ajs config reset

What it does:

Resets all configuration values back to their default settings.

Example:

ajs config reset

Available Settings

Here are the settings you can change:

SettingWhat it doesDefault
gitWhere to find templates, modules and interfaceshttps://github.com/antelopejs/interfaces.git
packageManagerWhich package manager to use for installationspnpm

Valid Package Managers

When setting the packageManager option, you can choose from:

  • npm - Uses npm install/npm install --save-dev for package installation
  • yarn - Uses yarn/yarn add --dev for package installation
  • pnpm - Uses pnpm install/pnpm add -D for package installation (default)

Example:

ajs config set packageManager npm

Where Settings Are Stored

Your settings are saved in a file on your computer:

  • Linux/macOS: ~/.antelopejs/config.json
  • Windows: %USERPROFILE%\.antelopejs\config.json

Tip: Always use the commands above to change settings rather than editing this file directly.