Skip to content

Installing from a Git branch

Wassim Chegham edited this page May 9, 2022 · 1 revision

In order to try the latest alpha version of the Azure Static Web Apps CLI, we recommend installing them from GitHub:

  1. Go into your SWA project:
cd my-swa-app/
  1. Using either npm or yarn to install the CLI locally:
  • Install the CLI from the main branch:
npm install https://github.com/Azure/static-web-apps-cli.git#main
  • Install the CLI from a different branch:
npm install https://github.com/Azure/static-web-apps-cli.git#BRANCH

Change BRANCH with the name of an existing branch!

  1. Use the binary installed at ./node_modules/.bin/swa (or .\node_modules\.bin\swa on Windows)
./node_modules/.bin/swa help

See the README file to learn about all the different ways to use the CLI.

Clone this wiki locally