When a new command is introduced to the CLI, it enhances the functionality and capabilities available for app development.
However, it's important to note that apps created before the release of the new command will not automatically have it integrated into their environments.
Instead, you need to add the new command to your package.json
file manually in order to utilize it.
Failure to update the package.json
with the new command will result in errors when you attempt to use the new command.
package.json
. This file contains all the dependencies and configurations for your app.Note: Your app's file structure is documented in CLI App Structure.
Under the scripts
section in the package.json
file, add the command and a name as a key:value pair.
For example:
"scripts": {
...
"release": "wix app release",
...
}
Save your changes.
Ensure you are using the latest version of the CLI before using the new command.