Skip to content

mochi sync ​

Refresh workspace cache and discover new executables.

Synopsis ​

Refresh the workspace cache and discover new executables. Use --git to also pull latest changes for all git-sourced workspaces before syncing. Use --force with --git to discard local changes and hard reset to the remote.

shell
mochi sync [flags]

Examples ​

shell
mochi sync               # rescan all workspaces for new executables
mochi sync --git         # pull all git-sourced workspaces, then rescan
mochi sync --git --force # hard-reset git workspaces before rescan

Options ​

FlagTypeDescription
--forceForce update by discarding local changes (hard reset to remote)
-g, --gitPull latest changes for all git-sourced workspaces before syncing
-h, --helphelp for sync
-o, --outputstringOutput format. One of: yaml, json, or tui.

Options inherited from parent commands ​

FlagTypeDescription
-L, --log-levelstringLog verbosity level (debug, info, fatal) (default "info")
--syncSync flow cache and workspaces

See also ​

  • mochi — Run and organize your development tasks