# aws-sam-cli を Homebrew, Nix, scoop, winget でインストール

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

## インストール

```sh
sudo av install brew:aws-sam-cli
```

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

### macOS

- Homebrew (100%):

```sh
brew install aws-sam-cli
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#aws-sam-cli
```

  証拠: nixpkgs package indexes: pkgs/by-name/aw/aws-sam-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/aws-sam-cli
```

  証拠: Scoop official bucket manifest trees: bucket/aws-sam-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Amazon.SAM-CLI -e
```

  証拠: Windows Package Manager source index: Amazon.SAM-CLI from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:aws-sam-cli
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/aws-sam-cli>
- **バージョン:** 1.165.0
- **ソース概要:** CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM
- **ホームページ:** <https://aws.amazon.com/serverless/sam/>
- **リポジトリ:** <https://github.com/aws/aws-sam-cli>
- **上流ドキュメント:** <https://aws.amazon.com/serverless/sam/>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://files.pythonhosted.org/packages/6d/66/c41a2a48d79dc63210da344fee668c6e3e017cb1fdafab31067ff761f5e3/aws_sam_cli-1.165.0.tar.gz>
- **最終更新:** 2026-08-01T20:52:54Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

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

## 依存関係

- certifi
- cryptography
- libyaml
- openssl@3
- pydantic
- python@3.14
- rpds-py

## ビルド依存関係

- cmake
- go
- pkgconf

## macOS 提供ライブラリ

- libffi

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.165.0
- マネージャ更新日: 2026-08-01
- ローカルデータ: OK
- 上流リポジトリ: https://aws.amazon.com/serverless/sam/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

AWS SAM CLI is the command-line companion to the AWS Serverless Application Model, used to build, test, debug, package, and deploy serverless applications defined with SAM templates.

### プロジェクトの歴史

The repository's public history begins in August 2017 as AWS SAM Local CLI, with early tags starting at v0.1.0. The README describes AWS SAM as an open-source framework with shorthand syntax for functions, APIs, databases, and event source mappings, and identifies this repository as the SAM CLI source code.

Over time the CLI became the everyday developer entry point for SAM: local Lambda-like execution, Docker-backed testing, packaging, deployment, guided configuration, and command references live in AWS's Serverless Application Model developer guide.

### 採用の歴史

SAM CLI adoption tracks the broader AWS serverless workflow. It gives local and CI users a packageable command named sam while the SAM template language remains CloudFormation-compatible infrastructure definition.

The supplied package facts list Homebrew, Nix, Scoop, and winget availability, which matches a cross-platform AWS developer tool: local laptops, CI runners, and onboarding scripts all need a stable installer story.

### 使われ方

Typical commands include sam init, sam build, sam local invoke, sam local start-api, sam deploy, and guided configuration flows. The official docs describe a project-level SAM CLI configuration file for command parameter values.

The default config name is samconfig at the project root next to template.yaml, with TOML as the default format and YAML/YML also supported. AWS credentials are inherited from the standard AWS SDK/CLI credential chain, including shared credentials files.

### パッケージ好きにとっての重要性

For package maintainers, SAM CLI is a heavyweight Python/AWS developer tool whose release cadence matters because AWS service behavior, Lambda runtimes, and local emulation expectations move quickly. The executable is small from the user's point of view but represents a large AWS workflow surface.

### タイムライン

- 2017: Repository history begins as AWS SAM Local CLI and v0.1.0 is tagged.
- 2018: v0.x releases add and evolve SAM CLI functionality.
- 2020: README screenshots and docs show SAM CLI as the front door for local build/test/deploy workflows.
- 2026: v1.x development tags show continuing active release work.

### Related projects

- AWS Serverless Application Model is the template framework the CLI operates on.
- AWS CloudFormation is the deployment substrate SAM extends.
- Docker is used by SAM CLI for local Lambda-like execution workflows.

### ソース

- <https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-command-reference.html>
- <https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-config.html>
- <https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/using-sam-cli.html>
- <https://github.com/aws/aws-sam-cli#readme>
- official git history and tags from https://github.com/aws/aws-sam-cli


## セキュリティノート

aws-sam-cli に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、パッケージメタデータはここに公開されています。



## 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: samconfig.toml, samconfig.yaml, samconfig.yml

## Credential files

- Unix: ~/.aws/credentials
- Windows: C:\Users\USERNAME\.aws\credentials
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** aws-sam-cli
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- Nix - aws-sam-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/aw/aws-sam-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/aws-sam-cli: normalized package name match | Scoop official bucket manifest trees: bucket/aws-sam-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Amazon.SAM-CLI: normalized package name match | Windows Package Manager source index: Amazon.SAM-CLI from https://cdn.winget.microsoft.com/cache/source.msix
- Scoop - extras/sam: installed executable or alias match | Scoop official bucket manifest trees: bucket/sam.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## 関連リンク

- [Cloud CLI packages](https://pkg.so/ja/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openssl@3](https://pkg.so/ja/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/ja/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/ja/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/ja/brew/cmake/) - Build dependency declared by Homebrew.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [aws-amplify](https://pkg.so/ja/brew/aws-amplify/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, serverless.
- [kn](https://pkg.so/ja/brew/kn/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, serverless.
- [rain](https://pkg.so/ja/brew/rain/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, deployment.
- [aws-elasticbeanstalk](https://pkg.so/ja/brew/aws-elasticbeanstalk/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, deployment.
- [vercel](https://pkg.so/ja/brew/vercel/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, deployment, serverless.
- [ecs-deploy](https://pkg.so/ja/brew/ecs-deploy/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, deployment.
- [emp](https://pkg.so/ja/brew/emp/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, deployment.
- [wskdeploy](https://pkg.so/ja/brew/wskdeploy/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, deployment, serverless.
- [aws-sso-util](https://pkg.so/ja/brew/aws-sso-util/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, certifi, cli, cloud, cloud-infrastructure.
- [awscli](https://pkg.so/ja/brew/awscli/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, cli, cloud, cloud-infrastructure, infrastructure.
- [aws-lambda](https://pkg.so/ja/npm/aws-lambda/) - Local metadata places this package in an adjacent workflow. Shared terms: aws, cli, cloud, cloud-infrastructure, deploy.

## Combined YAML source

View the package source record on GitHub. [combined/aws-sam-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/aws-sam-cli.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
