Add an account
Add an account
nsc add account [flags]
--allow-pub strings add publish default permissions - comma separated list or option can be specified multiple times
--allow-pub-response int[=1] default permissions to limit how often a client can publish to reply subjects [with an optional count, --allow-pub-response=n] (global)
--allow-pubsub strings add publish and subscribe default permissions - comma separated list or option can be specified multiple times
--allow-sub strings add subscribe default permissions - comma separated list or option can be specified multiple times
--deny-pub strings add deny publish default permissions - comma separated list or option can be specified multiple times
--deny-pubsub strings add deny publish and subscribe default permissions - comma separated list or option can be specified multiple times
--deny-sub strings add deny subscribe default permissions - comma separated list or option can be specified multiple times
--expiry string valid until ('0' is always, '2M' is two months) - yyyy-mm-dd, #m(inutes), #h(ours), #d(ays), #w(eeks), #M(onths), #y(ears) (default "0")
-h, --help help for account
-n, --name string account name
-k, --public-key string public key identifying the account
--response-ttl string the amount of time the default permissions is valid (global) - [#ms(millis) | #s(econds) | m(inutes) | h(ours)] - Default is no time limit.
--start string valid from ('0' is always, '3d' is three days) - yyyy-mm-dd, #m(inutes), #h(ours), #d(ays), #w(eeks), #M(onths), #y(ears) (default "0")
--config-dir string nsc config directory
--data-dir string nsc data store directory
-i, --interactive ask questions for various settings
--keystore-dir string nsc keystore directory
-K, --private-key string Key used to sign. Can be specified as role (where applicable),
public key (private portion is retrieved)
or file path to a private key or private key