Auth

Identity and access: who you are, and what you’re allowed to do.

Usage:

lightning auth [OPTIONS] COMMAND [ARGS]...

Commands

Command

Description

role

Describe what a role is allowed to do.

roles

List the roles in a teamspace and mark which ones you hold.

status

Show the credential requests send, who it acts as, and what it reaches.

token

Print the credential requests send.

whoami

Show who you are authenticated as.

lightning auth role

Describe what a role is allowed to do.

ROLE_ID is the id of the role; run lightning auth roles to find it.

Usage:

lightning auth role [OPTIONS] ROLE_ID

Arguments

Name

Type

Required

Description

ROLE_ID

text

yes

No description provided.

Options

Option

Type

Required

Default

Description

--teamspace

TEXT

no

Sentinel.UNSET

Teamspace the role belongs to, as ‘owner/teamspace’. Falls back to your default teamspace.

--json

—

no

—

Output the role as JSON.

lightning auth roles

List the roles in a teamspace and mark which ones you hold.

Usage:

lightning auth roles [OPTIONS]

Options

Option

Type

Required

Default

Description

--teamspace

TEXT

no

Sentinel.UNSET

Teamspace to list roles for, as ‘owner/teamspace’. Falls back to your default teamspace.

--json

—

no

—

Output roles as JSON.

lightning auth status

Show the credential requests send, who it acts as, and what it reaches.

Usage:

lightning auth status [OPTIONS]

lightning auth token

Print the credential requests send. A saved login has at least 30 minutes left.

Usage:

lightning auth token [OPTIONS]

lightning auth whoami

Show who you are authenticated as.

Works for both a personal login and a scoped API key. For a scoped key it also reports the org, project and role the key is bound to.

Usage:

lightning auth whoami [OPTIONS]

Options

Option

Type

Required

Default

Description

--json

—

no

—

Output identity as JSON.

Was this page helpful?

What went wrong?

↑↓ Navigate↵ Open⌘↵ New tabesc Close