> 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 Web Method Extensions with the CLI ## Article: Add Web Method Extensions with the CLI ## Article Link: https://dev.wix.com/docs/wix-cli/legacy-clis/legacy-wix-cli-for-apps/supported-extensions/backend-extensions/api/web-methods/add-web-method-extensions-with-the-cli.md ## Article Content: # Add Web Method Extensions with the Wix CLI for Apps
**Deprecated** The Wix CLI for Apps is deprecated and no longer receives updates or new features. New projects should use the unified [Wix CLI](https://dev.wix.com/docs/wix-cli/guides/about-the-wix-cli.md). [Determine which CLI your project uses](https://dev.wix.com/docs/wix-cli/guides/development/determine-which-cli-your-project-uses.md).[Web method extensions](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/web-methods/about-web-method-extensions.md) in the CLI allow you to define functions in your app's backend that you can call from your frontend code. Follow the instructions below to: 1. Create a web method extension for your app. 1. Try out the web method extension. 1. Deploy your app with the web method extension. Once these tasks are complete, your app will have a web method extension with methods that can be called from your frontend code. ## Before you begin + You must have an app project that was [created using the Wix CLI](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-cli/get-started/quick-start.md). + You must be logged into your Wix Studio account. If you don’t have one, [sign up for a Wix Studio account](https://manage.wix.com/account/custom-apps). ## Step 1 | Create the extension In the terminal: 1. Run the following command in your project's repository.: ```tsx npm run generate -- --type=WEB_METHOD ``` 1. The CLI displays a menu of extensions to generate. 1. The CLI prompts you to name the web method. You can only have one web method with a given name. Upon completion, the web method extension file is created in your project directory with the following structure: ```tsx . └──