my cli run
my cli run [-f file | slug] [flags] [-- args...]my cli runLoads a cached spec (or reads a file with -f), parses arguments, renders templates, and executes steps.
When run with no arguments, opens an interactive picker to select from all available commands (local files, synced commands, libraries, and git sources). In non-TTY environments, prints a table of available commands instead.
| Flag | Short | Description |
|---|---|---|
--file | -f | Run directly from a spec file |
--yes | -y | Skip confirmation prompts |
Arguments
Section titled “Arguments”Arguments after -- are parsed by the command spec:
- Positional arguments are matched in the order defined in the spec
- Flags use
--name valueor-s valuesyntax
Examples
Section titled “Examples”# Run a synced commandmy cli run deploy -- production
# Run from a filemy cli run -f command.yaml -- production
# Skip confirmationmy cli run deploy -y -- production
# Pass flags to the commandmy cli run deploy -- production --replicas 3
# Interactive picker (no args)my cli run
# Run from a spec file in the current directorymy cli run -f .Execution flow
Section titled “Execution flow”- Loads the spec from cache (or file with
-f) - Parses positional args and flags from the command line
- Renders Go templates in
runlines andenvvalues ({{.args.X}},{{.env.X}},{{.cwd}},{{.home}}) - Executes each step sequentially using the specified shell
- Records the run in history (
~/.my/history.jsonl)