> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Add New CLI Commands to Existing Apps ## Article: Add New CLI Commands to Existing Apps ## Article Link: https://dev.wix.com/docs/wix-cli/legacy-clis/legacy-wix-cli-for-apps/updates/add-new-cli-commands-to-existing-apps.md ## Article Content: # Add New CLI Commands to Existing Apps
**CLI Documentation Notice** We've released a [new Wix CLI](https://dev.wix.com/docs/wix-cli/guides/about-the-wix-cli.md). Continue here if your project uses the Wix CLI for Apps. [Determine which CLI your project uses](https://dev.wix.com/docs/wix-cli/guides/development/determine-which-cli-your-project-uses.md).
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. ## Adding a new command 1. Identify the new command from the [CLI Command Reference](https://dev.wix.com/docs/wix-cli/legacy/wix-cli-for-apps/app-development/command-reference.md). 2. Open your project and locate the `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](https://dev.wix.com/docs/wix-cli/legacy-clis/legacy-wix-cli-for-apps/get-started/cli-app-structure.md). 3. Under the `scripts` section in the `package.json` file, add the command and a name as a key:value pair. For example: ```json "scripts": { ... "release": "wix app release", ... } ``` 4. Save your changes. 5. Ensure you are using the [latest version](https://dev.wix.com/docs/wix-cli/legacy-clis/legacy-wix-cli-for-apps/app-development/development-overview.md) of the CLI before using the new command.