chainabit share revoke
Published (2.2.0)
This command is not included in Published (2.2.0). It is available in Development (2.2.0).
Development (2.2.0)
Revoke by session ID or by project or chain share ID
Synopsis
chainabit share revoke <kind> <id> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<kind> | Session, project or chain. Required. Accepted values: session, project, chain. | — |
<id> | Required. | — |
Options
| Option | Description | Default |
|---|---|---|
--yes | Confirm this change | — |
Options shared by every command are described in Global options and shared behavior.
Behavior
Revokes a share link so it no longer opens the resource. For session, give the session ID; for project or chain, give the share ID shown by chainabit share list. Revoking needs explicit consent: without --yes the command refuses with exit code 2 before sending anything, including with --json.
The command refuses an ID that belongs to another kind, for example a project share ID given with chain, and revokes nothing in that case. Revoking a session share uses your current workspace; select one first with chainabit workspace use.
Output
The command prints the ID and whether the link was revoked. With --json, the output contains id, kind and revoked.
Authentication and permissions
You must be signed in. If the service refuses the revocation, the command fails with an error.
Examples
chainabit share revoke project 00000000-0000-4000-8000-000000000001 --yes
chainabit share revoke session 00000000-0000-4000-8000-000000000002 --yes