← 返回命令列表

Linux command

aws-codeartifact 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Login to a CodeArtifact repository

aws codeartifact login --tool npm --domain [my-domain] --repository [my-repo]

Get an authorization token

aws codeartifact get-authorization-token --domain [my-domain] --query authorizationToken --output text

Create a new domain

aws codeartifact create-domain --domain [my-domain]

Create a repository

aws codeartifact create-repository --domain [my-domain] --repository [my-repo]

List all packages

aws codeartifact list-packages --domain [my-domain] --repository [my-repo]

Get repository endpoint

aws codeartifact get-repository-endpoint --domain [my-domain] --repository [my-repo] --format [npm|pypi|maven|nuget]

说明

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.

FAQ

What is the aws-codeartifact command used for?

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.

How do I run a basic aws-codeartifact example?

Run `aws codeartifact login --tool npm --domain [my-domain] --repository [my-repo]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more aws-codeartifact examples?

This page includes 6 examples for aws-codeartifact, plus related commands for nearby Linux tasks.