This documentation is a reference for:
VTEX IO CLI 3.x now has a plugin-based architecture, which means that certain commands from earlier versions are now implemented as plugins. These plugins include:
add
,autoupdate
,config
,debug
,infra
,lighthouse
,logs
,redirects
,settings
,submit
,support
,test
, andurl
. Access this link to learn more about VTEX IO CLI plugins.
Default commands
Below is a brief description of the default commands available in VTEX IO CLI. For detailed information about each command, click on the respective command name. You can also get this information in your terminal by adding --help
or -h
after the command name.
Command name | Description |
---|---|
autoupdate | Automatically updates VTEX IO CLI. |
browse | Opens the URL relative to your current workspace and account in a new browser window. |
deploy | Publishes an app as a stable version. Only works for apps previously published as a release candidate version. |
deprecate | Deprecates the specified app, uninstalling and downgrading it to the latest stable version on every VTEX account. |
deps diff | Displays the differences between the dependencies of two distinct workspaces. |
deps list | Displays the complete dependency tree of the current workspace. |
deps update | Updates a dependency of the current workspace. If not specified which one, it updates all dependencies. |
edition get | Displays the Edition App version installed on the current account. |
edition set | Displays the version of the Edition App for the current account. |
help | Displays help for VTEX CLI commands. |
init | Copies starting files and folders from VTEX boilerplates to your local directories. |
install | Installs an app on the current workspace. If no app is specified, it defaults to the app in the current directory. |
link | Syncs the app in the current directory with the development workspace being used. |
list | Lists the apps installed on the current workspace and account. |
local token | Prints the user auth token and copies it to the clipboard. |
login | Logs into a VTEX account. |
logout | Logs out from the current VTEX account. |
publish | Publishes the app in the current directory as a release candidate version. |
release | (For git users only.) Bumps the app version, commits, and pushes to remote the app in the current directory. |
setup | Sets up typing and tools for the current development environment. |
switch | Switches to another VTEX account. |
undeprecate | Reverts a deprecated version of an app to a stable version. |
uninstall | Uninstalls an app from the current account and workspace. |
unlink | Unlinks an app from the current workspace. |
update | Updates all installed apps to the latest minor or patch version. Does not upgrade to another major version. |
whoami | Prints details about the current account, workspace, environment, and login information. |
workspace abtest finish | Stops all A/B tests on the current account. |
workspace abtest start | Starts a new A/B test on the current workspace. |
workspace abtest status | Displays the results of the active A/B tests. |
workspace delete | Deletes one or many workspaces from the current account. |
workspace list | Lists all workspaces of the current account. |
workspace promote | Promotes the current workspace to master. Only applicable for production workspaces. |
workspace reset | Cleans all configurations of the specified workspace and recreates it with the configurations from master. |
workspace status | Displays information about the specified workspace. |
workspace use | Creates and switches to a new workspace or simply switches to an existing one. |
autoupdate
This command refers to the
@vtex/cli-plugin-autoupdate
plugin. Access this link to learn more about VTEX IO CLI plugins.
Automatically updates VTEX IO CLI.
Usage
_10 vtex autoupdate [CHANNEL]
Arguments
Argument | Description |
---|---|
CHANNEL (optional) | Channel for which to display the logs. |
browse
Opens the URL relative to your current workspace and account in a new browser window.
Usage
_10 vtex browse [PATH]
Arguments
Argument | Description |
---|---|
PATH (optional) | Relative path from https://{workspace}--{account}.myvtex.com/ . |
Options
Option | Alias | Description |
---|---|---|
--qr | -q | Prints a QR Code on the terminal. |
Examples
_10 vtex browse_10 vtex browse admin
deploy
This command refers to the
@vtex/cli-plugin-deploy
plugin. Access VTEX IO CLI plugins to learn more about the available plugins.
Publishes an app as a stable version. This command only works for apps previously published as a release candidate version [see vtex publish --help].
Usage
_10 vtex deploy [APPID]
Arguments
Argument | Description |
---|---|
APPID (optional) | The name and version of the app you want to deploy. |
Options
Option | Alias | Description |
---|---|---|
--yes | -y | Answers yes to all prompts. |
--force | -f | (Use with caution.) Ignores the testing period of 7 minutes after publishing an app. |
Examples
_10 vtex deploy_10 vtex deploy vtex.service-example@0.0.1
deprecate
Deprecates the specified app, uninstalling and downgrading it to the latest stable version on every VTEX account.
Usage
_10 vtex deprecate [APPID] [ITHAPPID]
Arguments
Argument | Description |
---|---|
APPID (optional) | The name and version of the app to deprecate, specified in the format {vendor}.{appname}@{x.x.x} . |
ITHAPPID (optional) | The names and versions of multiple apps to deprecate, specified in the format ({vendor}.{appname}@{x.x.x} ). |
Options
Option | Alias | Description |
---|---|---|
--yes | -y | Answers yes to all prompts. |
Examples
_10 vtex deprecate_10 vtex deprecate vtex.service-example@0.0.1
deps diff
This command refers to the
@vtex/cli-plugin-deps
plugin. Access VTEX IO CLI plugins to learn more about the available plugins.
Displays the differences between the dependencies of two distinct workspaces. If a single parameter is passed, the command compares the dependencies of the specified workspace with those of the master workspace. If no parameter is passed, the command compares the dependencies of the current workspace with those of the master workspace.
Usage
_10 vtex deps diff [WORKSPACE1] [WORKSPACE2]
Arguments
Argument | Description |
---|---|
WORKSPACE1 (optional) | First workspace for comparison. |
WORKSPACE2 (optional) | [default: master] Second workspace for comparison. |
Example
_10 vtex deps diff workspace1 workspace2
deps list
This command refers to the
@vtex/cli-plugin-deps
plugin. Access VTEX IO CLI plugins to learn more about the available plugins.
Displays the complete dependency tree of the current workspace.
Usage
_10 vtex deps list
Options
Option | Alias | Description |
---|---|---|
--keys | -k | Shows only key dependencies. |
--npm | -n | Includes dependencies from the npm registry. |
Alias
_10 vtex deps ls
Examples
_10 vtex deps list_10 vtex deps ls
deps update
This command refers to the
@vtex/cli-plugin-deps
plugin. Access VTEX IO CLI plugins to learn more about the available plugins.
Updates a dependency of the current workspace. If not specified which dependency, the command updates all dependencies of the workspace.
Usage
_10 vtex deps update [APPID] [ITHAPPID]
Arguments
Argument | Description |
---|---|
APPID (optional) | The name and version of the app to update, specified in the format {vendor}.{appname}@{x.x.x} . |
ITHAPPID (optional) | The names and versions of multiple apps to update, specified in the format ({vendor}.{appname}@{x.x.x} ). |
Examples
_10 vtex deps update_10 vtex deps update vtex.service-example@0.0.1
edition get
This command refers to the
@vtex/cli-plugin-edition
plugin. Access VTEX IO CLI plugins to learn more about the available plugins.
Displays the Edition App version installed on the current account.
Usage
_10 vtex edition get
Example
_10 vtex edition get
edition set
This command refers to the
@vtex/cli-plugin-edition
plugin.Access VTEX IO CLI plugins to learn more about the available plugins.
Sets the Edition App version for the current account.
Usage
_10 vtex edition set EDITION
Arguments
Argument | Description |
---|---|
EDITION | Name of the Edition App to install. |
Example
_10 vtex edition set editionName
help
Displays help for VTEX CLI commands.
Usage
_10 vtex help [COMMAND]
Arguments
Argument | Description |
---|---|
COMMAND (optional) | Command to show help. |
Options
Option | Alias | Description |
---|---|---|
--all | - | Displays all commands available in CLI. |
init
Copies starting files and folders from VTEX boilerplates to your local directories.
Usage
_10 vtex init
Example
_10 vtex init
install
Installs an app on the current workspace. If no app is specified, it defaults to the app in the current directory.
Usage
_10 vtex install [APPID] [ITHAPPID]
Arguments
Argument | Description |
---|---|
APPID (optional) | The name and version of the app to install, specified in the format {vendor}.{appname}@{x.x.x} . |
ITHAPPID (optional) | The names and versions of multiple apps to install, specified in the format {vendor}.{appname}@{x.x.x} . |
Options
Option | Alias | Description |
---|---|---|
--force | -f | Installs the specified app without checking for route conflicts. |
Examples
_10 vtex install_10 vtex install vtex.service-example@0.x_10 vtex install vtex.service-example@0.0.1
link
Syncs the app in the current directory with the development workspace being used.
Usage
_10 vtex link
Options
Option | Alias | Description |
---|---|---|
--account=account | -a | Starts a development session in the specified account. Must be used together with the '--workspace' flag. |
--clean | -c | Cleans the builder cache. |
--setup | -s | Sets up typing definitions before linking the app [see vtex setup --help]. |
--unsafe | -u | Allows linking the app despite TypeScript errors. |
--workspace=workspace | -w | Starts a development session in the specified workspace. It can be used together with the '--account' flag to switch from the current account and workspace. |
--no-watch | - | Does not watch for file changes after the initial link. |
Example
_10 vtex link -a youraccount -w yourworkspace
list
Lists the apps installed on the current workspace and account.
Usage
_10 vtex list
Aliases
_10 vtex ls
Examples
_10 vtex list_10 vtex ls
local token
Prints the user auth token and copies it to the clipboard.
Usage
_10 vtex local token
Example
_10 vtex local token
login
Logs into a VTEX account.
Usage
_10 vtex login [ACCOUNT]
Arguments
Argument | Description |
---|---|
ACCOUNT (optional) | Account name to log in. |
Options
Option | Alias | Description |
---|---|---|
--workspace=workspace | -w | Logs into the specified workspace. |
Examples
_10 vtex login_10 vtex login storecomponents
logout
Logs out from the current VTEX account.
Usage
_10 vtex logout
Example
_10 vtex logout
publish
Publishes the app in the current directory as a release candidate version.
Usage
_10 vtex publish
Options
Option | Alias | Description |
---|---|---|
--force | -f | Publishes the app independently of SemVer rules. |
--tag=tag | -t | Adds the specified tag to the release. |
--workspace=workspace | -w | Uses the specified workspace in the app registry. |
--yes | -y | Answers yes to all prompts. |
Example
_10 vtex publish
release
(For git users only.) Bumps the app version, commits, and pushes to remote the app in the current directory.
Usage
_10 vtex release [RELEASETYPE] [TAGNAME]
Arguments
Argument | Description |
---|---|
RELEASETYPE (optional) | Release type (major, minor, or patch). |
TAGNAME (optional) | Tag name (e.g., stable, beta). |
Examples
_10 vtex release_10 vtex release patch_10 vtex release patch beta_10 vtex release minor stable_10 vtex release pre
setup
Configures typings and tools for the current development environment.
Usage
_10 vtex setup
Options
Option | Alias | Description |
---|---|---|
--ignore-linked | -i | Configures types from published apps and ignores types from linked apps. |
--all | - | Sets all available typings, configurations, and tools. |
--tooling | - | Configures Prettier, Husky, and ESLint. |
--tsconfig | - | Configures React and Node TSconfig, if applicable. |
--typings | - | Configures GraphQL and React typings. |
switch
Switches to another VTEX account.
Usage
_10 vtex switch ACCOUNT
Arguments
Argument | Description |
---|---|
ACCOUNT | The name of the account to log in to. |
Options
Option | Alias | Description |
---|---|---|
--workspace=workspace | -w | Moves to the specified workspace. |
Examples
_10 vtex switch storecomponents
undeprecate
Reestablishes a deprecated version of an app as a stable version.
Usage
_10 vtex undeprecate [APPID] [ITHAPPID]
Arguments
Argument | Description |
---|---|
APPID (optional) | The name and version of the app to undeprecate, specified in the format {vendor}.{appname}@{x.x.x} . |
ITHAPPID (optional) | The names and versions of multiple apps to undeprecate, specified in the format {vendor}.{appname}@{x.x.x} . |
Options
Option | Alias | Description |
---|---|---|
--yes | -y | Answers yes to all prompts. |
Example
_10 vtex undeprecate vtex.service-example@0.0.1
uninstall
Uninstalls an app from the current workspace. If no app is specified to uninstall, it defaults to the app in the current directory.
Usage
_10 vtex uninstall [APPNAME] [ITHAPPNAME]
Arguments
Argument | Description |
---|---|
APPNAME (optional) | The name and version of the app to uninstall, specified in the format {vendor}.{appname}@{x.x.x} . |
ITHAPPNAME (optional) | The names and versions of multiple apps to uninstall, specified in the format {vendor}.{appname}@{x.x.x} . |
Options
Option | Alias | Description |
---|---|---|
--yes | -y | Answers yes to all prompts. |
Examples
_10 vtex uninstall_10 vtex uninstall vtex.service-example_10 vtex uninstall vtex.service-example@0.x
unlink
Unlinks an app from the current workspace. If no app is specified to unlink, it defaults to the app in the current directory.
Usage
_10 vtex unlink [APPID] [ITHAPPID]
appname Name of the app to unlink.
Arguments
Argument | Description |
---|---|
APPID (optional) | The name and version of the app to unlink, specified in the format {vendor}.{appname}@{x.x.x} . |
ITHAPPID (optional) | The names and versions of multiple apps to unlink, specified in the format {vendor}.{appname}@{x.x.x} . |
Options
Option | Alias | Description |
---|---|---|
--all | -a | Unlinks all apps. |
Examples
_10 vtex unlink_10 vtex unlink vtex.service-example@0.x
update
Updates all installed apps to the latest, minor, or patch version. Does not upgrade to another major version.
Usage
_10 vtex update
Example
_10 vtex update
whoami
This command refers to the
@vtex/cli-plugin-whoami
plugin. Access VTEX IO CLI plugins to learn more about the available plugins.
Prints details about the current account, workspace, environment, and login information.
Usage
_10 vtex whoami
Example
_10 vtex whoami
workspace abtest finish
This command refers to the
@vtex/cli-plugin-abtest
plugin. Access this link to learn more about VTEX IO CLI plugins.
Stops all A/B tests from running on the current account.
Usage
_10 vtex workspace abtest finish
workspace abtest start
This command refers to the
@vtex/cli-plugin-abtest
plugin. Access VTEX IO CLI plugins to learn more about the available plugins.
Starts a new A/B test on the current workspace.
Usage
_10 vtex workspace abtest start
workspace abtest status
This command refers to the
@vtex/cli-plugin-abtest
plugin. Access VTEX IO CLI plugins to learn more about the available plugins.
Displays the results of active A/B tests.
Usage
_10 vtex workspace abtest status
workspace delete
Deletes one or many workspaces from the current account.
Usage
_10 vtex workspace delete WORKSPACE1 [ITHWORKSPACE]
Arguments
Argument | Description |
---|---|
WORKSPACE1 | Name of the workspace to delete. |
ITHWORKSPACE (optional) | Names of multiple workspaces to delete. |
Options
Option | Alias | Description |
---|---|---|
--force | -f | Deletes the specified workspace, even if it is currently being used. |
--yes | -y | Answers yes to all prompts. |
Examples
_10 vtex workspace delete workspaceName_10 vtex workspace delete workspaceName1 workspaceName2
workspace list
Lists all workspaces of the current account.
Usage
_10 vtex workspace list
Aliases
_10 vtex workspace ls
Examples
_10 vtex workspace list_10 vtex workspace ls
workspace promote
Promotes the current workspace to master. It only works for production workspaces.
Usage
_10 vtex workspace promote
Aliases
_10 vtex promote
Examples
_10 vtex workspace promote_10 vtex promote
workspace reset
Cleans all configurations of the specified workspace and recreates it with the configurations from master.
Usage
_10 vtex workspace reset [WORKSPACENAME]
Arguments
Argument | Description |
---|---|
WORKSPACENAME (optional) | Name of the workspace to reset. |
Options
Option | Alias | Description |
---|---|---|
--production | -p | Recreates the workspace as a production one. |
--yes | -y | Answers yes to all prompts. |
Examples
_10 vtex workspace reset_10 vtex workspace reset workspaceName
workspace status
Displays information about the specified workspace.
Usage
_10 vtex workspace status [WORKSPACENAME]
Arguments
Argument | Description |
---|---|
WORKSPACENAME (optional) | Name of the workspace. |
Example
_10 vtex workspace status
workspace use
Creates and switches to a new workspace or simply switches to an existing one.
Usage
_10 vtex workspace use WORKSPACE
Arguments
Argument | Description |
---|---|
WORKSPACE | Name of the workspace to use. |
Options
Option | Alias | Description |
---|---|---|
--production | -p | Creates and/or switches to a production workspace. |
--reset | -r | Resets the workspace before switching to it. |
Aliases
_10 vtex use
Examples
_10 vtex workspace use workspaceName_10 vtex use workspaceName
Plugins
Below is a brief description of the commands provided by VTEX plugins. For detailed information about each command, click its respective name. After installing the corresponding plugin, you can also access this information in your terminal by adding --help
or -h
after the command name.
Access VTEX IO CLI plugin to learn more about the available plugins.
Plugin command | Description |
---|---|
add | Adds the specified app(s) to the manifest dependencies. |
config get | Prints the value of the requested configuration key. |
config reset | Resets the specified configuration to its default value. |
config set | Sets the value of a configuration key. |
debug dotnet | Debugs .NET applications (IDEs only). |
infra install | Installs an infra service. |
infra list | Lists installed infra services. |
infra update | Updates all installed infra services. |
lighthouse audit | Runs a Lighthouse audit over the specified URL. |
lighthouse show | Shows a previous audit report, filtered by app and/or URL. |
logs | Shows logs of an app (only apps in production). |
plugins install | Installs a plugin on CLI. |
plugins link | Links a plugin to CLI for development. |
plugins:list | Lists all plugins installed on your machine. |
plugins source | Lists all plugins supported by VTEX. |
plugins uninstall | Removes a plugin from CLI. |
plugins:update | Updates all plugins installed on your machine. |
redirects delete | Deletes redirects from the current account and workspace. |
redirects export | Exports all redirects defined in the current account and workspace to a CSV file. |
redirects import | Imports redirects from a CSV file to the current account and workspace. |
settings get | Prints the settings of the specified app. |
settings set | Sets value to the specified setting of an app. |
settings unset | Disables the specified setting of an app. |
submit | Submits the current app, or a specified one, for validation by the VTEX App Store team. |
support | Logs in as support to another VTEX account. |
test e2e | Runs E2E integration tests for the app in the current directory. |
test unit | Runs unit tests for the app in the current directory. |
url | Prints the base URL for the current account and workspace. |
add
Adds the specified app(s) to the manifest dependencies.
Usage
_10vtex add APPID [ITHAPPID]
Arguments
Argument | Description |
---|---|
APPID | The name and version of the dependency to include in the manifest.json file, specified in the format {vendor}.{appname}@{x.x.x} . |
ITHAPPID (optional) | The names and versions of multiple dependencies to include in the manifest.json file, specified in the format {vendor}.{appname}@{x.x.x} . |
Example
_10vtex add vtex.service-example@0.x
autoupdate
Automatically updates VTEX IO CLI.
Usage
_10 vtex autoupdate [CHANNEL]
Arguments
Argument | Description |
---|---|
CHANNEL (optional) | . |
config get
Prints the value of the requested configuration key.
Usage
_10vtex config get CONFIGNAME
Arguments
Argument | Description |
---|---|
CONFIGNAME | Configuration to retrieve the value from. |
Example
_10 vtex config get env_10 vtex config get cluster
config reset
Resets the specified configuration to its default value.
Usage
_10vtex config reset CONFIGNAME
Arguments
Argument | Description |
---|---|
CONFIGNAME | Name of the configuration to reset. |
Example
_10 vtex config reset env_10 vtex config reset cluster
config set
Sets the value of a configuration key.
Usage
_10vtex config set CONFIGNAME VALUE
Arguments
Argument | Description |
---|---|
CONFIGNAME | Name of the configuration. |
VALUE | New value of the specified configuration. |
Example
_10 vtex config set env envValue_10 vtex config set cluster clusterValue
debug donet
Debugs .NET applications (IDEs only).
Usage
_10 vtex debug dotnet DEBUGINST
Arguments
Argument | Description |
---|---|
DEBUGINST | Name of the .NET application to debug. |
infra install
Installs an infra service.
Usage
_10 vtex infra install SERVICEID
Arguments
Argument | Description |
---|---|
SERVICEID | The name and version of the service to install, specified in the format {vendor}.{servicename}@{x.x.x} . |
Examples
_10 vtex infra install infra-service_10 vtex infra install infra-service@0.0.1
infra list
Lists installed infra services.
Usage
_10 vtex infra list [NAME]
Arguments
Argument | Description |
---|---|
NAME (optional) | Service name. |
Options
Option | Alias | Description |
---|---|---|
--available | -a | Lists services that are available to install. |
--filter=filter | -f | Lists services that contain the specified word. |
Aliases
_10 vtex infra ls
Examples
_10 vtex infra list_10 vtex infra ls
infra update
Updates all installed infra services.
Usage
_10 vtex infra update
Example
_10 vtex infra update
lighthouse audit
Runs a Lighthouse audit over the specified URL.
Usage
_10 vtex lighthouse audit URL
Arguments
Argument | Description |
---|---|
URL | URL to audit. |
Options
Option | Alias | Description |
---|---|---|
--json | -j | Returns the report as a JSON on stdout. |
Aliases
_10 vtex lh audit
Examples
_10 vtex lighthouse audit my.url.com_10 vtex lh audit my.url.com
lighthouse show
Shows a previous audit report, filtering by app and/or URL.
Usage
_10 vtex lighthouse show
Options
Option | Alias | Description |
---|---|---|
--app=app | -a | Filters by app name. |
--url=url | -u | Filters by URL. |
Aliases
_10 vtex lh show
Examples
_10 vtex lighthouse show --app=vtex.awesome-app_10 vtex lighthouse show -u https://awesome.store.com_10 vtex lighthouse show -a vtex.awesome-app --url=https://awesome.store.com_10 vtex lh show --app=vtex.awesome-app_10 vtex lh show -u https://awesome.store.com_10 vtex lh show -a vtex.awesome-app --url=https://awesome.store.com
logs
Shows logs of an app. (Only apps in production.)
Usage
_10 vtex logs [APP]
Arguments
Argument | Description |
---|---|
APP (optional) | Name of the app to show logs. |
Options
Option | Alias | Description |
---|---|---|
--all | -a | Shows logs of all apps installed on the current account. |
--past | -p | Shows previous logs of the specified app. |
Examples
_10 vtex logs_10 vtex logs appName_10 vtex logs --all_10 vtex logs appName --past
plugins install
Installs a plugin on the CLI.
Usage
_10 vtex plugins install PLUGIN
Arguments
Argument | Description |
---|---|
PLUGIN | Plugin to install. |
Options
Option | Alias | Description |
---|---|---|
--force | -f | Refetches all packages, even the ones that were previously installed. |
Aliases
_10 vtex plugins:add
Examples
_10 vtex plugins install lighthouse_10 vtex plugins install https://github.com/vtex/cli-plugin-someplugin_10 vtex plugins install @vtex/cli-plugin-someplugin
plugins link
Links a plugin to CLI for development.
Usage
_10 vtex plugins link PLUGIN
Arguments
Argument | Description |
---|---|
PATH [default: .] | Plugin path. |
Examples
_10 vtex plugins link myplugin
plugins list
Lists all plugins installed on your machine.
Usage
_10 vtex plugins:list
Options
Option | Description |
---|---|
--core | Shows core plugins. |
Examples
_10 vtex plugins list
plugins source
Lists all plugins supported by VTEX.
Usage
_10 vtex plugins source PLUGIN
Arguments
Argument | Description |
---|---|
PLUGIN | Plugin name. |
PATH [default: .] | Plugin path. |
Examples
_10 vtex plugins source myplugin
plugins uninstall
Removes a plugin from CLI.
Usage
_10 vtex plugins uninstall PLUGIN
Arguments
Argument | Description |
---|---|
PLUGIN | Plugin to uninstall. |
Aliases
_10 vtex plugins unlink_10 vtex plugins remove
Examples
_10vtex plugins uninstall lighthouse_10vtex plugins remove lighthouse_10vtex plugins unlink lighthouse
plugins update
Updates all plugins installed on your machine.
Usage
_10 vtex plugins update
redirects delete
Deletes redirects from the current account and workspace.
Usage
_10 vtex redirects delete CSVPATH
Arguments
Argument | Description |
---|---|
CSVPATH | CSV file containing the URL paths to delete. |
Example
_10 vtex redirects delete csvPath
redirects export
Exports all redirects defined in the current account and workspace to a CSV file.
Usage
_10 vtex redirects export CSVPATH
Arguments
Argument | Description |
---|---|
CSVPATH | Name of the CSV file. |
Example
_10 vtex redirects export csvPath
redirects import
Imports redirects from a CSV file to the current account and workspace.
Usage
_10 vtex redirects import CSVPATH
Options
Option | Alias | Description |
---|---|---|
--reset | -r | Removes all previously defined redirects. |
Example
_10 vtex redirects import csvPath
settings get
Prints the settings of the specified app.
Usage
_10 vtex settings get APPNAME [FIELD]
Arguments
Argument | Description |
---|---|
APNAME | Name of the app to check the available settings. |
FIELD (optional) | Name of the setting. |
Aliases
_10 vtex settings
Example
_10 vtex settings get vtex.service-example
settings set
Sets the value for the specified setting of an app.
Usage
_10 vtex settings set APPNAME FIELD VALUE
Arguments
Argument | Description |
---|---|
APPNAME | Name of the app. |
FIELD | Name of the setting. |
VALUE | Value of the setting. |
Example
_10 vtex settings set vtex.store enableCriticalCSS true
settings unset
Disables the specified setting of an app.
Usage
_10 vtex settings unset APPNAME FIELD
Arguments
Argument | Description |
---|---|
APPNAME | Name of the app. |
FIELD | Name of the setting. |
Example
_10 vtex settings unset vtex.service-example fieldName
submit
Submits the current app, or a specified one, for validation by the VTEX App Store team.
Usage
_10 vtex submit [APPID]
Arguments
Argument | Description |
---|---|
APPID (optional) | The name of the app to validate. |
Examples
_10 vtex submit_10 vtex submit myvendor.myapp@1.2.3
support
Logs in as support to another VTEX account.
Usage
_10 vtex support ACCOUNT
Arguments
Argument | Description |
---|---|
ACCOUNT | Name of the account to give support. |
Example
_10 vtex support storecomponents
test e2e
Runs E2E integration tests for the app in the current directory.
Usage
_10 vtex test e2e
Options
Option | Alias | Description |
---|---|---|
--report=report | -r | Displays the results and state of the specified test ID. |
--token | -t | (Not recommended.) Sends your personal authorization token to your testing session, making it available during the tests. Please note that this action can be potentially dangerous as it exposes your token through the 'authToken' environment variable. |
--workspace | -w | Runs tests for the apps installed on the specified workspace. |
test unit
Runs unit tests for the app in the current directory.
Usage
_10 vtex test unit
Options
Option | Alias | Description |
---|---|---|
--unsafe | -u | Ignores TypeScript errors |
url
Prints the base URL for the current account, workspace, and environment.
Usage
_10 vtex url
Example
_10 vtex url