my cli init
my cli init [name] [flags]Creates a new command.yaml file with a starter template.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
name | Optional. If provided, creates a subdirectory with the command name (e.g., deploy/command.yaml) |
| Flag | Description |
|---|---|
--force | Overwrite an existing spec file |
Examples
Section titled “Examples”# Create command.yaml in current directorymy cli init
# Create deploy/command.yamlmy cli init deploy
# Overwrite existing filemy cli init deploy --forceBehavior
Section titled “Behavior”- Without a name argument: creates
command.yamlin the current directory - With a name argument: creates
<name>/command.yaml - Errors if the file already exists unless
--forceis used