tohru
tohru  /  docs

Commands

Tohru command reference

Global flags:

FlagMeaning
--debugEnable debug logging.
--format auto|plain|pretty|jsonSet log output format.
--verboseShow changed filesystem paths.

Application

CommandPurpose
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 tidyRemove untracked backups.
tohru versionPrint the current version.

Profiles

CommandPurpose
tohru profile listList 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

CommandPurpose
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

CommandPurpose
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.