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
| Argument | Description | Default |
|---|---|---|
[folder] | — |
Options
| Option | Description | Default |
|---|---|---|
--home | Trust your home folder (required for it): its visible folders only; hidden folders, Library and Applications stay closed | — |
--revoke | Stop trusting the folder | — |
--list | List the trusted folders and whether each still holds | — |
--edits | List 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
--homeas well. Trust then covers its visible folders only; hidden folders such as.sshand.config,LibraryandApplicationsstay closed.--homeon 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.
--revokewithdraws 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.--listshows each trusted folder with its state (valid,replacedormissing) and the date it was trusted. It needs no terminal. With--jsonit returns{"workspaces": [...]}.--editslists 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