Skip to content

chainabit chain update ​

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

Update the chain

Synopsis ​

text
chainabit chain update <id> [options]

Arguments ​

ArgumentDescriptionDefault
<id>Required.—

Options ​

OptionDescriptionDefault
--title <text>Title—
--description <text>About—
--instructions <text>Instructions—
--assistant-agent-instance-id <id\|none>Assistant ID—
--chainy-id <id\|none>Project ID—
--expected-revision <revision>Revision—
--start-date <date>Start date (YYYY-MM-DD)—
--end-date <date>End date (YYYY-MM-DD)—
--target-per-period <n>Target per period—
--is-visible <boolean>Visible. Accepted values: true, false.—
--visibility <scope>Sharing scope. Accepted values: private, team.—
--team-id <id\|none>Team ID—
--color-hex <hex>Display color—
--status <status>Status. Accepted values: active, paused, completed, abandoned.—
--yesConfirm this change—

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

Behavior ​

Changes the fields of the chain that you pass and leaves the others as they are; at least one field is required. --title, --description and --instructions set the text of the chain, --start-date and --end-date take dates as YYYY-MM-DD, and --color-hex sets its display color. Use none as the value of --chainy-id, --assistant-agent-instance-id or --team-id to clear it. --chainy-id can only be changed together with --expected-revision, the current chain revision as a whole number; --expected-revision alone is refused. --target-per-period must be a whole number of at least 1, and the server refuses to change it while the chain has periods. --is-visible takes true or false, --visibility takes private or team, and --status takes active, paused, completed or abandoned. Invalid input is refused before anything is sent.

This command changes data, so it asks for confirmation. In a terminal it shows the action and asks you to confirm; if you decline, nothing changes. Pass --yes to skip the question. With --json, or when there is no terminal, the command changes nothing and exits with code 2 unless you pass --yes.

Output ​

The output shows the chain ID, its new revision and the fields you changed. With --json it contains id, revision and the changed fields.

Authentication and permissions ​

You must be signed in. The server decides whether your account may make this change and refuses it otherwise.

Examples ​

bash
chainabit chain update 00000000-0000-4000-8000-000000000001 --description "Reviewed fixture" --yes
chainabit chain update 00000000-0000-4000-8000-000000000001 --title "Weekly review" --status paused
chainabit chain update 00000000-0000-4000-8000-000000000001 --chainy-id 00000000-0000-4000-8000-000000000006 --expected-revision 27 --yes

Built with purpose. chainabit.com