aix command init

aix command init

Create a new slash command interactively

Synopsis

Create a new slash command directory with a scaffolded command.md file.

If [path] is provided, the command is created in that directory. If no path is provided, a directory named after the command is created.

The command is interactive and will prompt for details unless they are provided via flags.

aix command init [path] [flags]

Examples

  # Interactive creation
  aix command init

  # Create in specific directory
  aix command init my-command

  # Non-interactive creation
  aix command init my-command --name my-command --description "Review code"

  # Specify model and agent
  aix command init review --name review --model claude-3-5-sonnet --agent task

  See Also:
    aix command install  - Install the created command
    aix command edit     - Edit the command definition
    aix command validate - Validate the command file

Options

      --agent string         agent type (default "task")
  -d, --description string   short description
  -f, --force                overwrite existing directory
  -h, --help                 help for init
      --model string         AI model to use
      --name string          command name (required)

Options inherited from parent commands

      --log-file string     write logs to file in JSON format
      --log-format string   log format: text, json (default "text")
  -p, --platform strings    target platform(s): claude, opencode (default: all detected)
  -q, --quiet               suppress non-error output
  -v, --verbose count       increase verbosity level (e.g., -v, -vv)

SEE ALSO

Auto generated by spf13/cobra on 24-Jan-2026