aws-codeartifact
Manage private package artifact repositories.
TLDR
Login to a CodeArtifact repository for npm
SYNOPSIS
aws codeartifact command [options]
DESCRIPTION
aws codeartifact is the AWS CLI interface for AWS CodeArtifact, a fully managed artifact repository service compatible with npm, PyPI, Maven, NuGet, Swift, Ruby, Cargo, and generic package formats. It enables teams to publish, share, and fetch packages from both CodeArtifact and public repositories.
CodeArtifact organizes packages into repositories within domains. Domains provide centralized asset storage with a single encryption key, while repositories can chain together through upstream connections to fetch packages from external sources.
COMMANDS
login
Configure package manager credentials for repository accessget-authorization-token
Get temporary credentials for API accesscreate-domain
Create a new domain for organizing repositoriescreate-repository
Create a repository within a domainlist-packages
List packages in a repositorydescribe-package-version
Get details about a specific package versioncopy-package-versions
Copy package versions between repositoriesassociate-external-connection
Connect repository to public registries (npmjs, PyPI, etc.)
CAVEATS
Authorization tokens expire after 12 hours by default. The login command must be re-run when tokens expire. Cross-account access requires explicit domain permissions policies. Upstream repository resolution follows a specific order and cached packages may not reflect latest upstream versions.
HISTORY
AWS CodeArtifact was launched in June 2020 as a managed artifact repository service. It was designed to replace self-hosted solutions like Nexus or Artifactory. Support for additional package formats including Swift, Ruby, and Cargo was added in subsequent releases through 2022-2023.
