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

Shortcuts:

ajs c show
ajs c s

Example:

$ ajs config show
{
  "git": "https://github.com/antelopejs/interfaces.git"
}

config get

Gets the value of one specific setting.

ajs config get <key>

Shortcuts:

ajs c get
ajs c g

Arguments:

ArgumentDescriptionRequired
<key>The setting you wantYes

Example:

$ ajs config get git
https://github.com/antelopejs/interfaces.git

config set

Changes a setting to a new value.

ajs config set <key> <value>

Shortcuts:

ajs c set
ajs c s

Arguments:

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

Example:

$ ajs config set git https://github.com/myorg/interfaces.git
Configuration updated successfully

Available Settings

Here are the settings you can change:

SettingWhat it doesDefault
gitWhere to find templates, modules and interfaceshttps://github.com/antelopejs/interfaces.git

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.