Skip to content

chainabit trust ​

Trust a folder (default: the current one) so local tools may work in it, or stop trusting it

Synopsis ​

text
chainabit trust [folder] [options]

Arguments ​

ArgumentDescriptionDefault
[folder]—

Options ​

OptionDescriptionDefault
--homeTrust your home folder (required for it): its visible folders only; hidden folders, Library and Applications stay closed—
--revokeStop trusting the folder—
--listList the trusted folders and whether each still holds—
--editsList the files you allowed to edit without asking—
--revoke-edit <path>Stop allowing edits of one file (a path inside the folder)—

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

Behavior ​

Trust is your decision about one folder: local tools may then work in it and in every folder below it, with the approvals your permission mode asks for. It takes effect immediately and nothing is scanned.

  • Trusting needs an interactive terminal and your confirmation. It is never done from a pipe, a script, configuration or a model's tool. Without a terminal the command says so and changes nothing.
  • Your home folder needs --home as well. Trust then covers its visible folders only; hidden folders such as .ssh and .config, Library and Applications stay closed. --home on any other folder is refused.
  • A disk root, a system folder, a folder that contains home folders, a folder that holds secrets or private app data, and Chainabit's own data folder cannot be trusted. The command says which and changes nothing.
  • --revoke withdraws the trust that covers the folder: its own, or that of the trusted folder above it. Running programs are stopped; a long-running background program may need to be stopped by you. It needs no terminal.
  • --list shows each trusted folder with its state (valid, replaced or missing) and the date it was trusted. It needs no terminal. With --json it returns {"workspaces": [...]}.
  • --edits lists the files for which you chose Always allow this file when Chao asked to edit them. Edits to those files in that folder no longer ask. It needs no terminal.
  • --revoke-edit <path> stops allowing edits of one file (a path inside the folder), so edits to it ask again. It needs no terminal.

The interactive conversation offers the same decision: the question when Chao starts in an untrusted folder, and /trust. See Permissions and folder trust.

Examples ​

bash
chainabit trust
chainabit trust --list
chainabit trust --edits
chainabit trust --revoke-edit src/app.js
chainabit trust --revoke

Built with purpose. chainabit.com