Automic VaultAutomic Vault

brew

Install static-web-apps-cli with Homebrew

SWA CLI serves as a local development tool for Azure Static Web Apps. Version 2.0.9 via Homebrew; verified 2026-04-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install static-web-apps-cli

local Homebrew formula metadata

overview

Package summary

SWA CLI serves as a local development tool for Azure Static Web Apps

Commands and aliases

  • swa

history

Project history and usage

Azure Static Web Apps CLI, usually invoked as `swa`, is Microsoft's local-development and deployment CLI for Azure Static Web Apps.

Project history

The official README describes SWA CLI as a local development tool for Azure Static Web Apps. It can serve static assets, proxy app dev servers and APIs, emulate authentication and authorization, emulate Static Web Apps configuration, and deploy to Azure Static Web Apps.

The official documentation site presents it as an all-in-one local development tool with install, init, login, start, deploy, and configuration workflows.

Adoption history

SWA CLI is packaged primarily through the JavaScript ecosystem as `@azure/static-web-apps-cli`, with Microsoft Learn documenting npm, Yarn, pnpm, and npx usage. The Homebrew package adds it to the macOS/Linux package-manager path for users who prefer system-level CLI installation.

Its adoption follows Azure Static Web Apps itself: developers use it when they need local emulation and deployment behavior close to the hosted Azure service, without wiring together separate static servers, Azure Functions tooling, and deployment commands by hand.

How it is used

Typical usage starts with `swa` or `swa init`, which creates a project configuration, then `swa start` for local emulation and `swa deploy` for cloud deployment.

The official config-file documentation says SWA CLI looks by default for `swa-cli.config.json` in the current directory, and that the file can contain one or more named project configurations.

Why package nerds care

SWA CLI matters to package nerds because it is a cloud vendor CLI distributed like an ordinary developer tool. It is available through npm-family package managers and Homebrew, wraps local emulation plus deployment, and uses a project-local JSON config file that can be committed with application code.

It is also an example of a CLI that bridges package-manager culture and cloud infrastructure: install a tool, run a local server, emulate platform features, then deploy to a managed cloud service.

Timeline

  • 2024: Microsoft Learn install page documents current install paths and a 2.0.2 security-related upgrade requirement.
  • 2025: Official Docusaurus documentation site lists the main SWA CLI workflows.
  • 2026: GitHub repository page lists v2.0.9 as the latest release on April 21, 2026.

Related projects

  • Related tools and services include Azure Static Web Apps, Azure Functions Core Tools, npm, Yarn, pnpm, npx, and the Azure deployment workflow.
  • The CLI works alongside `staticwebapp.config.json`, the runtime configuration file used by Azure Static Web Apps.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
./swa-cli.config.json
Windows
.\swa-cli.config.json

executables

Installed executables

CommandKindExposureNote
swacliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.0.9
manager updated2026-04-22
local dataok
upstreamnot checked
latest detectednot detected

https://azure.github.io/static-web-apps-cli/

install metadata

Package metadata

Package keybrew:static-web-apps-cli
Version2.0.9
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/static-web-apps-cli
Homepagehttps://azure.github.io/static-web-apps-cli/
Repositoryhttps://github.com/Azure/static-web-apps-cli
Upstream docshttps://azure.github.io/static-web-apps-cli
LicenseMIT
Source archivehttps://registry.npmjs.org/@azure/static-web-apps-cli/-/static-web-apps-cli-2.0.9.tgz
Last updated2026-04-22T12:52:24Z
Pulseupdated
Dependenciesnode
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namestatic-web-apps-cli
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment