my cli push
my cli push [flags]Validates the spec against the JSON Schema, then creates or updates the command on the server and publishes a new version.
| Flag | Short | Description |
|---|---|---|
--file | -f | Spec file to push (default: command.yaml, auto-detects) |
--message | -m | Version message |
--dir | Push all spec files found in a directory tree |
Examples
Section titled “Examples”# Push a single filemy cli push -f command.yaml
# Push with a version messagemy cli push -f command.yaml -m "Add --dry-run flag"
# Push all specs in a directorymy cli push --dir ./commands/Behavior
Section titled “Behavior”- Validates the spec against the JSON Schema before pushing
- Creates a new command if the slug doesn’t exist, otherwise updates it
- Each push creates a new auto-incremented version (v1, v2, v3…)
- With
--dir, recursively finds all.yaml,.yml, and.jsonspec files
Requires
Section titled “Requires”Authentication — you must be logged in via my cli login.