Skip to content

Conversation

blva
Copy link
Collaborator

@blva blva commented Oct 9, 2025

Proposed changes

Jira ticket: CLOUDP-344788

❯  ./bin/atlas auth token --help
Return the token for the current profile.

Usage:
  atlas auth token [flags]

Examples:
  # Return the token for the current profile:
  atlas auth token

  # Return the token for the current profile and save it to a file:
  atlas auth token > token.txt

  # Return the token for a specific profile:
  atlas auth token --profile <profile_name>


Flags:
  -h, --help            help for token
  -o, --output string   Output format. Valid values are json, json-path, go-template, or go-template-file. To see the full output, use the -o json option.

Global Flags:
  -P, --profile string   Name of the profile to use from your configuration file. To learn about profiles for the Atlas CLI, see https://dochub.mongodb.org/core/atlas-cli-save-connection-settings.

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
  • I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
  • I have updated test/README.md (if an e2e test has been added)
  • I have run make fmt and formatted my code

Further comments

@blva blva marked this pull request as ready for review October 13, 2025 10:45
@blva blva requested a review from a team as a code owner October 13, 2025 10:45
Copy link
Collaborator

@cveticm cveticm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested locally also 🚀

@blva blva merged commit 94be689 into master Oct 14, 2025
27 checks passed
@blva blva deleted the CLOUDP-344788 branch October 14, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants