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:
Argument | Description | Required |
---|---|---|
<key> | The setting you want | Yes |
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:
Argument | Description | Required |
---|---|---|
<key> | The setting to change | Yes |
<value> | The new value | Yes |
Example:
$ ajs config set git https://github.com/myorg/interfaces.git
Configuration updated successfully
Available Settings
Here are the settings you can change:
Setting | What it does | Default |
---|---|---|
git | Where to find templates, modules and interfaces | https://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.