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#
| Command | Description | Type |
|---|---|---|
| tdx invites list | List invitations. | Read |
| tdx invites create | Create an invitation. | Write |
| tdx invites regenerate | Revoke and replace an invitation with a new link. | Write |
| tdx invites revoke | Revoke 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.
# GET /control/v1/invites
tdx invites list [flags]Output fields (inside data)
| Field | Type | Description |
|---|---|---|
invites | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
notice | string | Present 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.
# POST /control/v1/invites
tdx invites create --target <json> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--target | json | Public target JSON: {role} or {workspaceId, role, accessEndsAt?}. |
Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--email | string | Optional recipient address; required by the gateway for admin-grade targets. | |
--expires-in-hours | integer | Integer lifetime from 1 to 168 hours; admin-grade gateway limit is 24 hours. | |
--token-file | path | New owner-only token file; never overwrite an existing path. | |
--secretless | boolean | false | Explicitly discard the minted invitation link without displaying it; not a gateway mint flag. |
Constraints
- At most one of
--token-file,--secretless --token-fileis required unless--secretlessor--dry-run
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
invite | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
delivery | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
preview | write-preview|null | Requested method, path and body only, with no diff and unchecked by the gateway; null after execution. |
notice | string | Present 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.
# POST /control/v1/invites/:inviteId/regenerate
tdx invites regenerate --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public resource id; never a credential. |
Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--expires-in-hours | integer | Integer lifetime from 1 to 168 hours; admin-grade gateway limit is 24 hours. | |
--token-file | path | New owner-only token file; never overwrite an existing path. | |
--secretless | boolean | false | Explicitly discard the minted invitation link without displaying it; not a gateway mint flag. |
Constraints
- At most one of
--token-file,--secretless --token-fileis required unless--secretlessor--dry-run
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
invite | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
delivery | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
preview | write-preview|null | Requested method, path and body only, with no diff and unchecked by the gateway; null after execution. |
notice | string | Present 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.
# DELETE /control/v1/invites/:inviteId
tdx invites revoke --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public resource id; never a credential. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
invite | masked-route-data | Gateway data after mandatory CLI masking; █ marks masked values. |
preview | write-preview|null | Requested method, path and body only, with no diff and unchecked by the gateway; null after execution. |
notice | string | Present instead of data when masking withholds the entire result. |