Skip to content

Commit

Permalink
docs: update api token section
Browse files Browse the repository at this point in the history
  • Loading branch information
devmatteini committed Feb 7, 2021
1 parent 557b546 commit 86141d5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,13 @@ $ phs --host 192.168.1.50 disable

(where `192.168.1.50` is the pihole ip address)

Enable/disable by passing the api token as an argument, instead of using the `PIHOLE_TOKEN` environment variable
Enable/disable by passing the api token as an option, instead of using the `PIHOLE_TOKEN` environment variable

```bash
$ phs enable <api_token>
$ phs --token <token> <SUBCOMMAND>
```

_**Note: the `PIHOLE_TOKEN` environment variable will always have priority even if you pass the api token as an
argument**_
_**Note: the api token passed as an option will always have priority on the `PIHOLE_TOKEN` environment variable**_

## License

Expand Down

0 comments on commit 86141d5

Please sign in to comment.