tdx invites#

Manage one-shot invitation links.

See Invitation links.

Every command also takes the global flags and reads the environment variables that the command reference lists once.

Commands#

CommandDescriptionType
tdx invites listList invitations.Read
tdx invites createCreate an invitation.Write
tdx invites regenerateRevoke and replace an invitation with a new link.Write
tdx invites revokeRevoke an invitation.Write

tdx invites list#

List invitations.

Reads

Requires users.read. Read the gateway's bounded invitation list (at most 1000 stored rows); no pagination or completeness is inferred. See People and role commands.

Shell
# GET /control/v1/invites
tdx invites list [flags]

Output fields (inside data)

FieldTypeDescription
invitesmasked-route-dataGateway data after mandatory CLI masking; █ marks masked values.
noticestringPresent instead of data when masking withholds the entire result.

tdx invites create#

Create an invitation.

Writes

Requires invites.create for the target. See Invitation links.

Shell
# POST /control/v1/invites
tdx invites create --target <json> [flags]

Required flags

FlagTypeDefaultDescription
--targetjsonPublic target JSON: {role} or {workspaceId, role, accessEndsAt?}.

Optional flags

FlagTypeDefaultDescription
--emailstringOptional recipient address; required by the gateway for admin-grade targets.
--expires-in-hoursintegerInteger lifetime from 1 to 168 hours; admin-grade gateway limit is 24 hours.
--token-filepathNew owner-only token file; never overwrite an existing path.
--secretlessbooleanfalseExplicitly discard the minted invitation link without displaying it; not a gateway mint flag.

Constraints

  • At most one of --token-file, --secretless
  • --token-file is required unless --secretless or --dry-run

Output fields (inside data)

FieldTypeDescription
invitemasked-route-dataGateway data after mandatory CLI masking; █ marks masked values.
deliverymasked-route-dataGateway data after mandatory CLI masking; █ marks masked values.
previewwrite-preview|nullRequested method, path and body only, with no diff and unchecked by the gateway; null after execution.
noticestringPresent instead of data when masking withholds the entire result.

tdx invites regenerate#

Revoke and replace an invitation with a new link.

Writes

Requires invites.create for the target. The gateway revokes the old invitation and creates a new one under the caller's authority; it does not inherit the old inviter's authority. See Invitation links.

Shell
# POST /control/v1/invites/:inviteId/regenerate
tdx invites regenerate --id <string> [flags]

Required flags

FlagTypeDefaultDescription
--idstringPublic resource id; never a credential.

Optional flags

FlagTypeDefaultDescription
--expires-in-hoursintegerInteger lifetime from 1 to 168 hours; admin-grade gateway limit is 24 hours.
--token-filepathNew owner-only token file; never overwrite an existing path.
--secretlessbooleanfalseExplicitly discard the minted invitation link without displaying it; not a gateway mint flag.

Constraints

  • At most one of --token-file, --secretless
  • --token-file is required unless --secretless or --dry-run

Output fields (inside data)

FieldTypeDescription
invitemasked-route-dataGateway data after mandatory CLI masking; █ marks masked values.
deliverymasked-route-dataGateway data after mandatory CLI masking; █ marks masked values.
previewwrite-preview|nullRequested method, path and body only, with no diff and unchecked by the gateway; null after execution.
noticestringPresent instead of data when masking withholds the entire result.

tdx invites revoke#

Revoke an invitation.

Writes

Requires invites.create or users.manage for the target. See People and role commands.

Shell
# DELETE /control/v1/invites/:inviteId
tdx invites revoke --id <string> [flags]

Required flags

FlagTypeDefaultDescription
--idstringPublic resource id; never a credential.

Output fields (inside data)

FieldTypeDescription
invitemasked-route-dataGateway data after mandatory CLI masking; █ marks masked values.
previewwrite-preview|nullRequested method, path and body only, with no diff and unchecked by the gateway; null after execution.
noticestringPresent instead of data when masking withholds the entire result.