Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, scoop, winget 安装 aws-sam-cli

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install aws-sam-cli

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#aws-sam-cli

nixpkgs package indexes · pkgs/by-name/aw/aws-sam-cli/package.nix · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/aws-sam-cli

Scoop official bucket manifest trees · bucket/aws-sam-cli.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Amazon.SAM-CLI -e

Windows Package Manager source index · Amazon.SAM-CLI · 来源: cdn.winget.microsoft.com

概览

软件包摘要

CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM

历史

项目历史与用法

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.

安全态势

尚未找到受保护工具覆盖

没有找到 aws-sam-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

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

建议审查

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

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
samconfig.tomlsamconfig.yamlsamconfig.yml

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.aws/credentials
Windows
C:\Users\USERNAME\.aws\credentials

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://aws.amazon.com/serverless/sam/

安装元数据

软件包元数据

软件包键brew:aws-sam-cli
版本1.163.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/aws-sam-cli
主页https://aws.amazon.com/serverless/sam/
仓库https://github.com/aws/aws-sam-cli
上游文档https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-command-reference.html
许可证Apache-2.0
源码归档https://files.pythonhosted.org/packages/96/03/3b7776b890db3aebe4e3bbcd4ba9e573066bf1dbe730f1301f69a09aa53a/aws_sam_cli-1.163.0.tar.gz
最后更新2026-07-03T03:58:21Z
Pulseupdated
依赖certifi, cryptography, libyaml, openssl@3, pydantic, python@3.14, rpds-py
构建依赖cmake, go, pkgconf
macOS 提供的库libffi
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameaws-sam-cli
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

aws-sam-cli

nix profile install nixpkgs#aws-sam-cli
  • normalized package name match
  • 匹配方式:Aws Sam Cli
nixpkgs package indexes · api.github.com · 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
Scoop95%

main/aws-sam-cli

scoop install main/aws-sam-cli
  • normalized package name match
  • 匹配方式:Aws Sam Cli
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/aws-sam-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

Amazon.SAM-CLI

winget install --id Amazon.SAM-CLI -e
  • normalized package name match
  • 匹配方式:Aws Sam Cli
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Amazon.SAM-CLI from https://cdn.winget.microsoft.com/cache/source.msix
Scoop92%

extras/sam

scoop install extras/sam
  • installed executable or alias match
  • 匹配方式:Sam
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/sam.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 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
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment