macOS
brew install static-web-apps-clilocal Homebrew formula metadata
安装
brew install static-web-apps-clilocal Homebrew formula metadata
概览
SWA CLI serves as a local development tool for Azure Static Web Apps
历史
Azure Static Web Apps CLI, usually invoked as `swa`, is Microsoft's local-development and deployment CLI for Azure Static Web Apps.
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.
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.
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.
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
./swa-cli.config.json.\swa-cli.config.json可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
swa | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://azure.github.io/static-web-apps-cli/
安装元数据
| 软件包键 | brew:static-web-apps-cli |
|---|---|
| 版本 | 2.0.9 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/static-web-apps-cli |
| 主页 | https://azure.github.io/static-web-apps-cli/ |
| 仓库 | https://github.com/Azure/static-web-apps-cli |
| 上游文档 | https://azure.github.io/static-web-apps-cli |
| 许可证 | MIT |
| 源码归档 | https://registry.npmjs.org/@azure/static-web-apps-cli/-/static-web-apps-cli-2.0.9.tgz |
| 最后更新 | 2026-04-22T12:52:24Z |
| Pulse | updated |
| 依赖 | node |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | static-web-apps-cli |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.