Working with packages
Packages overview
Note Published npm packages are limited to a maximum size less than 2 GB.
Note Importing a package version from a public repository typically takes longer than publishing. For more information, see External connection latency.
List package names
Important The value for the
--namespaceoption should not include the leading@. To search for the namespace@types, set the value to types.Note The
--namespaceoption filters by namespace prefix. Any npm package with a scope that starts with the value passed to the--namespaceoption will be returned in thelist-packagesresponse.Note The
--namespaceoption filters by namespace prefix. Any npm package with a scope that starts with the value passed to the--namespaceoption will be returned in thelist-packagesresponse.
Download package version assets
Note To download assets from a scoped npm package, include the scope in the
--namespaceoption. The@symbol must be omitted when using--namespace. For example, if the scope is@types, use--namespace types.
Copy packages between repositories
Note Calling
put-repository-permissions-policywill replace the current repository policy if one exists. You can use theget-repository-permissions-policycommand to see if a policy exists, for more information see Read a policy. If a policy does exist, you may want to add these permissions to it instead of replacing it.Note You must specify the
--versionsor the--version-revisionsparameter withcopy-package-versions. You cannot specify both.
View and update package version details and dependencies
Note CodeArtifact does not extract package version detail information from parent POM files. The metadata for a given package version will only include information in the POM for that exact package version, not for the parent POM or any other POM referenced transitively using the POM
parenttag. This means that the output ofdescribe-package-versionwill omit metadata (such as license information) for Maven package versions that rely on aparentreference to contain this metadata.Note CodeArtifact does not support displaying readme files from Maven packages.
Update package version status
Note The
—-versionsparameter must also be defined when using the--version-revisionsparameter.
Editing package origin controls
Note Packages that existed in CodeArtifact repositories prior to around May 2022 will have a default package origin controls of Publish: ALLOW and Upstream: ALLOW. Package origin controls must be set manually for such packages. The current default values have been set on new packages since that time, and started being enforced when the feature launched on July 14, 2022. For more information about setting package origin controls, see Editing package origin controls.
Last updated
Was this helpful?