What is CLI config?
What is config for
Config can be used with all the binaries and provides a shortcut when using the command line. Consider this example:
For every command you have to specify several command line options. Config can save these so you don't have to pass them everytime and instead if not passed they are retrieved from the config store. If any of the options are provided on the command line then they override any previously stored config options.
This provides a very easy to use and flexible configuration solution. The above command could be shortened using config to this:
we think you will agree that is much easier to work with.
Usage
There are 7 things you can do with config:
In addition to those usages you can also override config completely - which is very hand if you have saved config for different things e.g
Save
Save stores the specified config to the location: ~/.axentro/config
. You just have to supply the config you would like to save and a config name to save it under (the default name is config which is used if no name is supplied):
Show
You can view the list of stored config using the show command:
Remove
If you want to remove a specific configuration or all configurations (this will delete the config file)
Use
If you want to switch to using a different default config:
List
To see a list of all the saved configs
Enable / Disable
If you want to completely disable configurations so they don't apply or turn them back on again:
Supported config
The following config can be saved:
Last updated