/aio-cli-plugin-config

Config Plugin for the Adobe I/O CLI

Primary LanguageJavaScriptApache License 2.0Apache-2.0

oclif Version Downloads/week Build Status License Greenkeeper badge Codecov Coverage

aio-cli-plugin-config

Config Plugin for the Adobe I/O CLI

Usage

$ npm install -g @adobe/aio-cli-plugin-config
$ ./bin/run COMMAND
running command...
$ ./bin/run (-v|--version|version)
@adobe/aio-cli-plugin-config/2.2.1 darwin-x64 node-v10.18.1
$ ./bin/run --help [COMMAND]
USAGE
  $ ./bin/run COMMAND
...

Commands

./bin/run config

list, get, set, delete, and edit persistent configuration data

USAGE
  $ ./bin/run config

OPTIONS
  -e, --env     environment variables
  -g, --global  global config
  -j, --json    output in json
  -l, --local   local config
  -y, --yaml    output in yaml
  --verbose     show all config values

ALIASES
  $ ./bin/run config:ls

EXAMPLES
  $ aio config:list
  $ aio config:get KEY
  $ aio config:set KEY VALUE
  $ aio config:delete KEY
  $ aio config:clear

See code: src/commands/config/index.js

./bin/run config:clear

clears all persistent config values

USAGE
  $ ./bin/run config:clear

OPTIONS
  -f, --force   do not prompt for confirmation
  -g, --global  global config
  -l, --local   local config

See code: src/commands/config/clear.js

./bin/run config:delete KEYS...

deletes persistent config values

USAGE
  $ ./bin/run config:delete KEYS...

OPTIONS
  -g, --global  global config
  -l, --local   local config

ALIASES
  $ ./bin/run config:del
  $ ./bin/run config:rm

See code: src/commands/config/delete.js

./bin/run config:edit

edit config file

USAGE
  $ ./bin/run config:edit

OPTIONS
  -g, --global  global config
  -l, --local   local config

See code: src/commands/config/edit.js

./bin/run config:get KEY

gets a persistent config value

USAGE
  $ ./bin/run config:get KEY

OPTIONS
  -e, --env     environment variables
  -g, --global  global config
  -j, --json    output in json
  -l, --local   local config
  -y, --yaml    output in yaml

See code: src/commands/config/get.js

./bin/run config:list

lists all persistent config values

USAGE
  $ ./bin/run config:list

OPTIONS
  -e, --env     environment variables
  -g, --global  global config
  -j, --json    output in json
  -l, --local   local config
  -y, --yaml    output in yaml
  --verbose     show all config values

ALIASES
  $ ./bin/run config:ls

See code: src/commands/config/list.js

./bin/run config set key 'a value' # set key to 'a value'

sets a persistent config value

USAGE
  $ ./bin/run config set key 'a value'       # set key to 'a value'
  $ ./bin/run config set key -f value.json   # set key to the json found in the file value.json
  $ ./bin/run config set -j key < value.json # set key to the json found in the file value.json

OPTIONS
  -f, --file         value is a path to a file
  -g, --global       global config
  -i, --interactive  prompt for value
  -j, --json         value is json
  -l, --local        local config
  -y, --yaml         value is yaml

See code: src/commands/config/set.js