{"repo":"Azure/static-web-apps-cli","free":true,"listed":false,"github":"https://github.com/Azure/static-web-apps-cli","clone":"git clone https://github.com/Azure/static-web-apps-cli.git","description":"Azure Static Web Apps CLI ✨","language":"TypeScript","stars":668,"topics":["azure","static","web","webapp","authentication","azure-functions","serverless","cli","swa-emulator","swa"],"license":"MIT","category":"cli-tools","readme_excerpt":"Azure Static Web Apps CLI The Static Web Apps CLI, also known as SWA CLI, serves as a local development tool for Azure Static Web Apps. It can: - Serve static app assets, or proxy to your app dev server - Serve API requests, or proxy to APIs running in Azure Functions Core Tools - Emulate authentication and authorization - Emulate Static Web Apps configuration, including routing and ACL roles - Deploy your app to Azure Static Web Apps Important Notes If you have suggestions or you encounter issues, please report them or help us fix them. Your contributions are very much appreciated. 🙏 The CLI emulates commonly used capabilities of the Azure Static Web Apps cloud service. Some differences are expected. Always deploy and test your apps in Azure to confirm behavior. Quickstart Installing the CLI with npm , yarn or pnpm : - To install the CLI in your project, use: You can also install the SWA CLI globally using npm install -g @azure/static-web-apps-cli . Basic usage - Open a SWA app folder at the root (outside any /api or /app folders): - The best way to get started is to run the swa command alone and follow the interactive prompts: It will generate a configuration for you, then build your project and ask if you want to deploy it to Azure. See swa for more details. Extended usage Here are the currently supported swa commands. Use swa --help to learn about options and usage for that particular command. - login : login into Azure - init : initialize a new static web app project - ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Azure","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Azure/static-web-apps-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}