Automic VaultAutomic Vault

brew

使用 Homebrew 安装 static-web-apps-cli

查看 static-web-apps-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install static-web-apps-cli

local 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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
swacli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本2.0.9
管理器更新时间2026-04-22
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
依赖node
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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