Skip to content

chainabit share create ​

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) ​

Create a link-only session share, a private project share or a read-only chain link

Synopsis ​

text
chainabit share create <kind> <resourceId> [options]

Arguments ​

ArgumentDescriptionDefault
<kind>Session, project or chain. Required. Accepted values: session, project, chain.—
<resourceId>Required.—

Options ​

OptionDescriptionDefault
--yesConfirm this change—

Options shared by every command are described in Global options and shared behavior.

Behavior ​

Creates a share link for the resource of the given kind: session (a link-only share of a session), project (a private share of a project) or chain (a read-only link to a chain). A chain link has no options. Creating a link needs consent: in an interactive terminal the command asks you to confirm; in --json mode or without a terminal you must pass --yes, otherwise the command refuses with exit code 2 before sending anything.

Sharing a session uses your current workspace; select one first with chainabit workspace use. Being able to read a chain does not by itself allow you to share it: if you may not share it, the command fails with an error and no link is created.

Output ​

The command prints the share's ID, the resource ID and the share link. With --json, the output contains id, kind, resourceId and shareUrl. The link is shown only here: listing and revoking never print it, so copy it now.

Authentication and permissions ​

You must be signed in and allowed to share the resource.

Examples ​

bash
chainabit share create project 00000000-0000-4000-8000-000000000001
chainabit share create chain 00000000-0000-4000-8000-000000000002 --yes

Built with purpose. chainabit.com