0.1.2 • Published 4 years ago

@netlify-tools/cli v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

CLI

oclif Version License

Usage

$ npm install -g @netlify-tools/cli
$ netlify-tools COMMAND
running command...
$ netlify-tools (-v|--version|version)
@netlify-tools/cli/0.1.2 darwin-x64 node-v12.18.0
$ netlify-tools --help [COMMAND]
USAGE
  $ netlify-tools COMMAND
...

Commands

netlify-tools env:delete

Delete env variables from a specific context

USAGE
  $ netlify-tools env:delete

OPTIONS
  -c, --context=context  [default: default] context to be modified
  -h, --help             show CLI help
  --authToken=authToken  (required) Netlify OAuth Token
  --siteID=siteID        (required) Netlify Site ID

EXAMPLES
  $ netlify-tools env:delete FOO BAR BAZ # delete variables from default context
  $ netlify-tools env:delete -c default FOO BAR BAZ
  $ netlify-tools env:delete -c production FOO BAR BAZ

See code: src/commands/env/delete.ts

netlify-tools env:describe

Describe env variables for a context

USAGE
  $ netlify-tools env:describe

OPTIONS
  -c, --context=context  Context to describe
  -h, --help             show CLI help
  --all                  describe all the available contexts
  --authToken=authToken  (required) Netlify OAuth Token
  --siteID=siteID        (required) Netlify Site ID

EXAMPLES
  $ netlify-tools env:describe -c default # list all variables with no suffix
  $ netlify-tools env:describe -c staging
  $ netlify-tools env:describe -c production -c develop
  $ netlify-tools env:describe --all

See code: src/commands/env/describe.ts

netlify-tools env:set

Set env variables by context

USAGE
  $ netlify-tools env:set

OPTIONS
  -c, --context=context  [default: default] Context
  -h, --help             show CLI help
  --authToken=authToken  (required) Netlify OAuth Token
  --siteID=siteID        (required) Netlify Site ID

EXAMPLES
  $ netlify-tools env:set FOO=foo BAR=bar
  $ netlify-tools env:set -c default FOO=foo BAR=bar
  $ netlify-tools env:set -c staging FOO=foo BAR=bar

See code: src/commands/env/set.ts

netlify-tools help [COMMAND]

display help for netlify-tools

USAGE
  $ netlify-tools help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help