Skip to content

Commit dc563f2

Browse files
committed
docs: refine docs/CircleCI-API.md
1 parent e3e5706 commit dc563f2

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

docs/CircleCI-API.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,7 @@
66
## Authentication
77

88
* generate [Personal API Token](https://app.circleci.com/settings/user/tokens) which is associated with a user
9-
10-
* save token in ```~/.circleci.creds``` formatted like
11-
12-
```ini
13-
# created 8 Jan '22 - personal access token for Dave
14-
PERSONAL_API_TOKEN=1234567890abcdef
15-
```
16-
17-
* extract using something like
18-
19-
```bash
20-
~> PERSONAL_API_TOKEN=$(grep PERSONAL_API_TOKEN ~/.circleci.creds | sed -e 's|^.*=||g')
21-
~>
22-
```
9+
and assign it to the environment variable ```PERSONAL_API_TOKEN```
2310

2411
* test the token works
2512

0 commit comments

Comments
 (0)