Skip to main content

invite

invite a user to the account

✉️ Invite a user to the account.

Send an invitation by email with a role, list the account's invitation activity, and resend or revoke a pending invitation. Invitations belong to the active account — pass --account <id> to target a different one.

Usage​

csph teams invite <email> [flags]

Options​

Command Specific​

--account <string>
account ID

--role <string> (default "member")

invitation role [admin|member|viewer]

Formatting​

For more information about formatting options, see Formatting.

-o, --output <string>

output format: [table|plain|csv|json|yaml]

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

Examples​

# invite a user as a member
> csph teams invite [email protected] --role member

# invite an admin
> csph teams invite [email protected] --role admin

# invite a read-only viewer
> csph teams invite [email protected] --role viewer

# list the account's invitation activity
> csph teams invite list

# resend a pending invitation
> csph teams invite resend <invitation-id>

# revoke a pending invitation
> csph teams invite revoke <invitation-id>

See also​