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 environment.
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.
Add the new command under the scripts
section in the package.json
file.
For example:
Save your changes.
Ensure you are using the latest version of the CLI before using the new command.