Skip to content

mochi discover ​

Find the tasks already in a workspace and make them runnable

Synopsis ​

Finds the tasks a workspace already defines — Makefile targets, npm scripts, Justfile recipes, Taskfile tasks, Compose services, Dockerfiles, Cargo commands, shell and Python scripts, and GitHub Actions jobs — and makes them executables you can search and run. Nothing is written into the workspace. GitHub Actions jobs are listed for reference and can't run locally.

Scans the current workspace unless you name one. mochi sync re-scans every workspace discovered before, so run this to preview a workspace, narrow what it picks up, or scan one for the first time.

shell
mochi discover [workspace] [flags]

Examples ​

shell
mochi discover --dry-run
mochi discover my-project --providers makefile,npm

Options ​

FlagTypeDescription
--dry-runShow what would be found without changing anything
--forceScan again even if no files changed since the last scan
-h, --helphelp for discover
--onlystringsOnly these files, by name (comma-separated)
-o, --outputstringOutput format: text or json (default "text")
--providersstringsOnly these providers (comma-separated, e.g. makefile,npm)

Options inherited from parent commands ​

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

See also ​