Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example should use nats context ? #3

Open
gedw99 opened this issue Nov 27, 2023 · 0 comments
Open

example should use nats context ? #3

gedw99 opened this issue Nov 27, 2023 · 0 comments

Comments

@gedw99
Copy link

gedw99 commented Nov 27, 2023

Nats Context allows a dev to load contexts locally to make it easier to work across nats systems.

Its part of the NATS cli.

So example should probably use this way of connecting, so that we can easily control if its using the docker nats cluster or the NATS on host.

nats context
error: a subcommand from the list below is required, use --help for full help including flags and arguments

usage: nats context <command> [<args> ...]

Manage nats configuration contexts

Subcommands:
  context save      Update or create a context
  context copy      Copies an existing context
  context edit      Edit a context in your EDITOR
  context ls        List known contexts
  context rm        Remove a context
  context select    Select the default context
  context info      Display information on the current or named context
  context validate  Validate one or all contexts

nats context ls
╭───────────────────────────────────────────╮
│               Known Contexts              │
├─────────────────────┬─────────────────────┤
│ Name                │ Description         │
├─────────────────────┼─────────────────────┤
│ demo*               │                     │
│ gedw99-nats-cluster │ Nats cluster on fly │
╰─────────────────────┴─────────────────────╯
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant