ReferenceCLIAccess

nevia access add

Give someone access to the workspace

nevia access add [FLAGS] [WHO]

Adds a known email at once and invites an unknown one. Pass --private-key to create a key-file principal for scripts, CI or agents. Its key file is saved to ~/.config/nevia/keys/ unless you pass --out or --no-key.

Arguments

  • [WHO] - Email or principal ID (omit with --private-key)

Options

  • --private-key - Create a principal that signs in with a key file

  • --role <ROLE> - Role to grant (default viewer for a login, editor for a private key)

    Choices: admin, editor, viewer

  • --name <NAME> - Name of the private-key principal (generated if omitted)

  • --description <TEXT> - Description of the private-key principal

  • --no-key - Create the private-key principal without issuing a key

  • --own-key <FILE> - PEM RSA public key file to use instead of a generated key (2048 bits or more)

  • --expires-in <DURATION> - How long the key works, 15m to 90d (e.g. 7d)

  • --out <PATH> - Folder or file path for the key file (- for stdout)

  • --idempotency-key <KEY> - Idempotency key for the request (generated if omitted)

  • -h, --help - Print help

On this page