Extend the vtex
toolbelt!
- Clone
vtex/toolbelt
and follow the steps on the Contributing section. - Clone/Create a plugin with this template.
- Change the template name under this project's
package.json
. - Run
yarn link
on this project. - Now run
vtex link @vtex/cli-plugin-template
(or the new name) on thevtex/toolbelt
project. - Run
yarn watch
on thevtex/toolbelt
- Test the command on a VTEX IO app with
vtex-test hello
For more information, read Ocliff Docs.
$ npm install -g @vtex/cli-plugin-infra
$ vtex COMMAND
running command...
$ vtex (-v|--version|version)
@vtex/cli-plugin-infra/1.0.0 linux-x64 node-v12.22.1
$ vtex --help [COMMAND]
USAGE
$ vtex COMMAND
...
Installs an infra service.
USAGE
$ vtex infra:install SERVICEID
ARGUMENTS
SERVICEID Name and version of the service ({vendor}.{servicename}@{x.x.x}) to install.
OPTIONS
-h, --help show CLI help
-v, --verbose Show debug level logs
--trace Ensure all requests to VTEX IO are traced
EXAMPLES
vtex infra install infra-service
vtex infra install [email protected]
See code: build/commands/infra/install.ts
Lists installed infra services.
USAGE
$ vtex infra:list [NAME]
ARGUMENTS
NAME Service name.
OPTIONS
-a, --available Lists services that are available to install.
-f, --filter=filter Lists services that contain the specified word.
-h, --help show CLI help
-v, --verbose Show debug level logs
--trace Ensure all requests to VTEX IO are traced
ALIASES
$ vtex infra:ls
EXAMPLES
vtex infra list
vtex infra ls
See code: build/commands/infra/list.ts
Updates all installed infra services.
USAGE
$ vtex infra:update
OPTIONS
-h, --help show CLI help
-v, --verbose Show debug level logs
--trace Ensure all requests to VTEX IO are traced
EXAMPLE
vtex infra update
See code: build/commands/infra/update.ts