my cli run
my cli run [-f file | slug] [flags] [-- args...]Loads a cached spec (or reads a file with -f), parses arguments, renders templates, and executes steps.
| 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 3Execution 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)