Skip to content

chainabit auth devices 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 a registered device and end its session

Synopsis ​

text
chainabit auth devices revoke <id> [options]

Arguments ​

ArgumentDescriptionDefault
<id>Required.—

Options ​

OptionDescriptionDefault
--yesConfirm this change—

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

Behavior ​

Removes the device with the given ID from your account and ends its session. Find the ID with chainabit auth devices list.

  • The command asks for confirmation first. Pass --yes to skip the question.
  • If the device is the one you are using now, the question warns that you will be signed out here and need to sign in again.
  • Without a terminal, or with --json, and without --yes, nothing is changed: the command prints Nothing was changed. Add --yes to confirm. and exits with code 2.
  • If you decline the question, nothing is changed.

Output ​

The receipt shows ID and Revoked. When you revoked the device of this computer it also shows Sign in again with the command to run. With --json the output has id, revoked and current (true, false or null when unknown), plus nextCommand when you revoked this computer's device.

Authentication and permissions ​

You must be signed in. You can remove only devices registered to your own account.

Examples ​

bash
chainabit auth devices revoke 00000000-0000-4000-8000-000000000001
chainabit auth devices revoke 00000000-0000-4000-8000-000000000001 --yes
chainabit auth devices revoke 00000000-0000-4000-8000-000000000001 --yes --json

Built with purpose. chainabit.com