Skip to content

my cli push

Terminal window
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.

FlagShortDescription
--file-fSpec file to push (default: command.yaml, auto-detects)
--message-mVersion message
--dirPush all spec files found in a directory tree
Terminal window
# Push a single file
my cli push -f command.yaml
# Push with a version message
my cli push -f command.yaml -m "Add --dry-run flag"
# Push all specs in a directory
my cli push --dir ./commands/
  • 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 .json spec files

Authentication — you must be logged in via my cli login.