Skip to content

Commit

Permalink
Add docs for ctx previous command
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-ilijic committed Oct 2, 2023
1 parent edce342 commit 07ba997
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ Known contexts:

The context is selected as default, use `nats context --help` to see how to add, remove and edit contexts.

To switch to another context we can use:
```
nats ctx select localhost
```
To switch context back to previous one, we can use `context previous` subcommand:
```
nats ctx -- -
```

### Configuration file

nats-cli stores contextes in `~/.config/nats/context`. Those contextes are stored as JSON documents. You can find the description and expected value for this configuration file by running `nats --help` and look for the global flags.
Expand Down

0 comments on commit 07ba997

Please sign in to comment.