oclif example Hello World CLI
$ npm install -g codify
$ codify COMMAND
running command...
$ codify (--version)
codify/0.5.0 darwin-arm64 node-v20.15.1
$ codify --help [COMMAND]
USAGE
$ codify COMMAND
...Apply a codify file onto the system. A plan of the changes is first generated and a list of changes will be shown before proceeding
USAGE
$ codify apply [--json] [--debug] [-o plain|default|debug|json] [-s] [-p <value>]
FLAGS
-o, --output=<option> [default: default]
<options: plain|default|debug|json>
-p, --path=<value> Path to codify.json file
-s, --secure
--debug
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Apply a codify file onto the system. A plan of the changes is first generated and a list of changes will be shown
before proceeding
EXAMPLES
$ codify apply
$ codify apply --path ~
See code: src/commands/apply/index.ts
Destroy or uninstall a resource (or many resources).
USAGE
$ codify destroy [--json] [--debug] [-o plain|default|debug|json] [-s] [-p <value>]
FLAGS
-o, --output=<option> [default: default]
<options: plain|default|debug|json>
-p, --path=<value> Path to codify.json file
-s, --secure
--debug
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Destroy or uninstall a resource (or many resources).
EXAMPLES
$ codify destroy homebrew nvm
See code: src/commands/destroy.ts
Display help for codify.
USAGE
$ codify help [COMMAND...] [-n]
ARGUMENTS
COMMAND... Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for codify.
See code: @oclif/plugin-help
Generate codify configs from existing installations
USAGE
$ codify import [--json] [--debug] [-o plain|default|debug|json] [-s] [-p <value>]
FLAGS
-o, --output=<option> [default: default]
<options: plain|default|debug|json>
-p, --path=<value> Path to codify.json file
-s, --secure
--debug
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Generate codify configs from existing installations
EXAMPLES
$ codify import homebrew nvm
See code: src/commands/import.ts
Generate a plan based on a codify.json file. This plan will list out the changes Codify will need to make in order to meet the desired config.
USAGE
$ codify plan [--json] [--debug] [-o plain|default|debug|json] [-s] [-p <value>]
FLAGS
-o, --output=<option> [default: default]
<options: plain|default|debug|json>
-p, --path=<value> Path to codify.json file
-s, --secure
--debug
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Generate a plan based on a codify.json file. This plan will list out the changes Codify will need to make in order to
meet the desired config.
EXAMPLES
$ codify plan
See code: src/commands/plan/index.ts
update the codify CLI
USAGE
$ codify update [CHANNEL] [--force | | [-a | -v <value> | -i]] [-b ]
FLAGS
-a, --available See available versions.
-b, --verbose Show more details about the available versions.
-i, --interactive Interactively select version to install. This is ignored if a channel is provided.
-v, --version=<value> Install a specific version.
--force Force a re-download of the requested version.
DESCRIPTION
update the codify CLI
EXAMPLES
Update to the stable channel:
$ codify update stable
Update to a specific version:
$ codify update --version 1.0.0
Interactively select version:
$ codify update --interactive
See available versions:
$ codify update --available
See code: @oclif/plugin-update