Azure CLI
Static Web Apps Commands
Azure Static Web Apps
5 commands
Commands
Create Static Web App
$ az staticwebapp create -n mysite -g rg --source https://github.com/user/repo
Create a static web app from GitHub repository
Add Custom Domain
$ az staticwebapp hostname set -n mysite -g rg --hostname custom.com
Configure custom domain for static web app
List Deployment Environments
$ az staticwebapp environment list -n mysite -g rg
List all deployment environments for static web app
List App Secrets
$ az staticwebapp secrets list -n mysite -g rg
List secrets and API tokens for static web app
Configure App Settings
$ az staticwebapp appsettings set -n mysite -g rg --setting-names KEY=value
Set application settings and environment variables