Skip to content

Commit

Permalink
Clarify ways to specify an access token (#320)
Browse files Browse the repository at this point in the history
A user should do one of these, but not both of them. Use a list
instead of an enumeration.
  • Loading branch information
jason-seqera authored Aug 15, 2023
1 parent c798af7 commit a82806b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,17 @@ Create a Tower access token using the [Tower](https://tower.nf/) web interface v

Providing `tw` access to Tower with your access token can be achieved in several ways:

1. Export it directly into your terminal:
- By setting an environment variable:

```bash
export TOWER_ACCESS_TOKEN=<your access token>
```
1. Export the token as a shell variable directly into your terminal:

```bash
export TOWER_ACCESS_TOKEN=<your access token>
```

2. Add the above `export` command to a file such as `.bashrc` to be automatically added into your environment.
2. Add the above `export` command to a file such as `.bashrc` to be automatically added into your environment.

3. Specify your token as a parameter when running `tw`:
- By specifying the `--access-token` parameter:

```bash
tw --access-token=<your access token> <other options>
Expand Down

0 comments on commit a82806b

Please sign in to comment.