aws / aws-cli

Universal Command Line Interface for Amazon Web Services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend the AWS CodeArtifact login command to support multiple namespaces

DanielMackenzie93 opened this issue · comments

Describe the feature

I propose enhancing the aws codeartifact login command to allow for multiple namespaces to be specified in a single command.
This could be implemented by allowing the --namespace flag to accept a list of namespaces instead of a single value.

Use Case

Currently, the AWS CodeArtifact login command restricts users to specify a single namespace per login attempt.
This limitation requires users to execute multiple login commands, or manually configure other scopes/namespaces when working with projects that depend on packages from multiple private namespaces within the same domain.

Proposed Solution

Example of the proposed command usage:

aws codeartifact login \
    --tool npm \
    --repository my-repository \
    --domain my-domain \
    --namespace @namespace-a,@namespace-b,@namespace-c

Other Information

Related Issues

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CLI version used

aws-cli/2.15.28

Environment details (OS name and version, etc.)

Sonoma 14.2.1

Thanks for the feature request. I'll share this with the CodeArtifact team, who owns and maintains this customization. In the meantime we can continue to track the request and gather feedback here.

main issue version is also changed in it for the given time period and version.tim finnigan added p3 and removed investigating needs triage labels 2 days ago in the main function and priority settings in it.