Global flags:
| Flag | Meaning |
|---|
--debug | Enable debug logging. |
--format auto|plain|pretty|json | Set log output format. |
--verbose | Show changed filesystem paths. |
Application
| Command | Purpose |
|---|
tohru install [--force] [--no-hooks] [profile] | Initialize the Tohru store and optionally load a profile. |
tohru uninstall [--no-hooks] | Unload the current profile and remove Tohru application files. |
tohru tidy | Remove untracked backups. |
tohru version | Print the current version. |
Profiles
| Command | Purpose |
|---|
tohru profile list | List cached profile slugs and paths. |
tohru profile new <slug> | Create a profile in ~/.tohru/profiles/<slug>. |
tohru profile add <slug> <path> | Copy a local path into a profile and add manifest entries. |
tohru profile tidy <slug> | Merge nested roots in a profile manifest. |
Loading
| Command | Purpose |
|---|
tohru plan <profile> | Preview what loading a profile would do. |
tohru load [--force] [--discard-changes] [--no-hooks] <profile> | Load a profile by path or cached slug. |
tohru reload [--force] [--discard-changes] [--no-hooks] | Reload the current profile. |
tohru unload [--no-hooks] | Unload the current profile and restore tracked conflicts. |
tohru load also has the alias tohru switch.
Status And Hooks
| Command | Purpose |
|---|
tohru status [--flat] [--json] [--backups] | Show tracked objects or backup details. |
tohru hooks list <profile> | Inspect profile hooks. |
tohru hooks trusted [profile] | List trusted hooks. |
tohru hooks allow <profile> <hook-id> | Trust a profile hook locally. |
tohru hooks revoke <profile> <hook-id> | Revoke local trust for a profile hook. |