Skip to content

Instantly share code, notes, and snippets.

@autodidaddict
Created April 18, 2019 15:13
Show Gist options
  • Save autodidaddict/c510afb49e9b60e3bddd0712b0442872 to your computer and use it in GitHub Desktop.
Save autodidaddict/c510afb49e9b60e3bddd0712b0442872 to your computer and use it in GitHub Desktop.
Initialize wasmcraft NATS 2.0 operator hierarchy
$ nsc init --name wasmcraft --account-name gamecore --user-name coreuser
Project initialization generated NKeys. These keys should be treated
as secrets. You can move the directory, and reference them from the
`$NKEYS_PATH` environment variable. To remind yourself of current
environment configuration type `nsc env` while in a project directory.
╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Generated NKeys Location │
├────────────────────┬────────────┬────────────────────────────────────────────────────────────────────┤
│ Name │ Kind │ Location │
├────────────────────┼────────────┼────────────────────────────────────────────────────────────────────┤
│ wasmcraft_operator │ operator │ ~/.nkeys/wasmcraft_operator/wasmcraft_operator.nk │
│ gamecore │ account │ ~/.nkeys/wasmcraft_operator/accounts/gamecore/gamecore.nk │
│ coreuser │ user │ ~/.nkeys/wasmcraft_operator/accounts/gamecore/users/coreuser.nk │
│ │ creds file │ ~/.nkeys/wasmcraft_operator/accounts/gamecore/users/coreuser.creds │
╰────────────────────┴────────────┴────────────────────────────────────────────────────────────────────╯
Success! - initialized environment directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment