Skip to content

Commit 5d22a8e

Browse files
authored
chore: address followup review of service account tutorial (#4191)
1 parent 3783d4f commit 5d22a8e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

guides/tutorials/authenticate_with_service_account.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This tutorial provides step-by-step instructions for authenticating your MongoDB Atlas CLI profile using Service Accounts, allowing you to automate and and manage MongoDB resources. Service Accounts, also referred to as OAuth Applications, allows programmatic access through a secure Client ID and Secret—ideal for scripting use cases and CI/CD workflows.
44

5+
__Note:__ This process is interactive. For programmatic authentication, set enviroment variables `MONGODB_ATLAS_CLIENT_ID` and `MONGODB_ATLAS_CLIENT_SECRET` before using the AtlasCLI. See [Atlas CLI Environment Variables](https://www.mongodb.com/docs/atlas/cli/stable/atlas-cli-env-variables/) for all supported environment variables.
6+
57
---
68

79
### Prerequisites
@@ -18,14 +20,14 @@ Before starting, ensure you have:
1820
Open your terminal and run the following command:
1921

2022
```
21-
atlas auth login
23+
atlas auth login --profile myProfile
2224
```
2325

24-
This command initiates the authentication setup for your Atlas CLI profile.
26+
This command initiates the interactive authentication setup guide for a Atlas CLI profile called 'myProfile'.
2527

2628
---
2729
### Step 2: Select the Authentication Method
28-
After running `atlas auth login`, you will see the following prompt:
30+
After running `atlas auth login --profile myProfile`, you will see the following prompt:
2931

3032
```
3133
? Select authentication type: [Use arrows to move, type to filter]
@@ -72,4 +74,6 @@ Next, the CLI will prompt you to select the output format.
7274

7375
---
7476
### Step 5: Authentication Complete
75-
At this point, your Atlas CLI profile is authenticated using your Service Account. You can now execute authenticated commands in Atlas CLI within the scope of your Service Account permissions.
77+
At this point, your Atlas CLI profile is authenticated using your Service Account. You can now execute authenticated commands in Atlas CLI within the scope of your Service Account permissions by adding `--profile myProfile` flag to any command you run.
78+
79+
For example, `atlas cluster list --profile myProfile`

0 commit comments

Comments
 (0)