az staticwebapp
Manage static apps. Azure CLI reference
17 commands 6 options Its page in the Azure CLI reference
Commands
appsettingsManage app settings the static app.backendsLink or unlink a prexisting backend with a static web app.createCreate a static app.dbconnectionManage Static Web App database connections.deleteDelete a static app.disconnectDisconnect source control to enable connecting to a different repo.enterprise-edgeManage the Azure Front Door CDN for static webapps.environmentManage environment of the static app.functionsLink or unlink a prexisting functionapp with a static webapp.hostnameManage custom hostnames of Functions of the static app.identityManage a static web app's managed identitylistList all static app resources in a subscription, or in resource group if providedreconnectConnect to a repo and branch following a disconnect command.secretsManage deployment token for the static appshowShow details of a static app.updateUpdate a static app.usersManage users of the static app.Options
--branch, -bThe target branch in the repository.--login-with-adoUse azure credentials to create an Azure Dev Ops personal access token--login-with-githubInteractively log in with Github to retrieve the Personal Access Token--name, -nName of the static site--source, -sURL for the repository of the static site.--token, -tA user's GitHub or Azure Dev Ops repository token.