# static-web-apps-cli を Homebrew でインストール

static-web-apps-cli のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:static-web-apps-cli
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install static-web-apps-cli
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:static-web-apps-cli
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/static-web-apps-cli>
- **バージョン:** 2.0.9
- **ソース概要:** SWA CLI serves as a local development tool for Azure Static Web Apps
- **ホームページ:** <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
- **生成日時:** 2026-07-08T07:18:31+00:00

## 実行可能ファイル

- swa (cli)
- swa (エイリアス)

## 依存関係

- node

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 2.0.9
- マネージャ更新日: 2026-04-22
- ローカルデータ: OK
- 上流リポジトリ: https://azure.github.io/static-web-apps-cli/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://azure.github.io/static-web-apps-cli/>
- <https://azure.github.io/static-web-apps-cli/docs/cli/swa-config/>
- <https://github.com/Azure/static-web-apps-cli#readme>
- <https://learn.microsoft.com/en-us/azure/static-web-apps/static-web-apps-cli-install>
- source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## 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

- Unix: ./swa-cli.config.json
- Windows: .\swa-cli.config.json
## ソースデータベース詳細

- **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:** stable


## 関連リンク

- [Cloud CLI packages](https://www.automicvault.com/ja/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/ja/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/ja/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://www.automicvault.com/ja/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [firebase-cli](https://www.automicvault.com/ja/pkg/brew/firebase-cli/) - Shares av.db curated category or tags: cli, cloud-infrastructure, deployment.
- [firefly](https://www.automicvault.com/ja/pkg/brew/firefly/) - Shares av.db curated category or tags: cli, cloud-infrastructure, local-development.
- [aiven-client](https://www.automicvault.com/ja/pkg/brew/aiven-client/) - Shares av.db curated category or tags: cli, cloud-infrastructure.
- [akamai](https://www.automicvault.com/ja/pkg/brew/akamai/) - Shares av.db curated category or tags: cli, cloud-infrastructure.
- [aliyun-cli](https://www.automicvault.com/ja/pkg/brew/aliyun-cli/) - Shares av.db curated category or tags: cli, cloud-infrastructure.
- [filen-cli](https://www.automicvault.com/ja/pkg/brew/filen-cli/) - Shares av.db curated category or tags: cli, cloud-infrastructure.
- [flarectl](https://www.automicvault.com/ja/pkg/brew/flarectl/) - Shares av.db curated category or tags: cli, cloud-infrastructure.
- [fn](https://www.automicvault.com/ja/pkg/brew/fn/) - Shares av.db curated category or tags: cli, cloud-infrastructure.
- [azqr](https://www.automicvault.com/ja/pkg/brew/azqr/) - Local package facts share a topical domain. Shared terms: azure, cli, cloud, cloud-infrastructure, infrastructure.
- [aztfexport](https://www.automicvault.com/ja/pkg/brew/aztfexport/) - Local package facts share a topical domain. Shared terms: azure, cli, cloud, cloud-infrastructure, infrastructure.

## Combined YAML source

View the package source record on GitHub. [combined/static-web-apps-cli.yml](https://github.com/automic-vault/db/blob/main/combined/static-web-apps-cli.yml)


## ソース

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