Skip to main content
Control Qoder CLI’s behavior during an interactive session with slash commands. Commands are shortcuts in Qoder CLI that trigger specific tasks, prefixed with a slash (/). Type / in TUI mode to view available commands and select one to execute.

Quick Start

In TUI mode:
  1. Start Qoder CLI:
  2. Type / to view the command list
  3. Select a command and press Enter to execute:
In Headless mode: Prompt commands that submit instructions can be executed in Headless mode. Commands that open an interactive picker or dialog must be used in TUI mode.

Command Types

Qoder CLI commands are divided into two types:

Built-in Commands

Creating Commands

Custom commands allow you to define frequently used prompts as Markdown files that Qoder CLI can execute. Commands are organized by scope (project-specific or personal). Use TUI’s built-in AI assistance to quickly generate command configurations:
  1. Run /commands in TUI to open the commands panel
  2. Press Tab to switch to User or Project tab
  3. Select “Create new command…” and press Enter
  4. Describe the command you want to create:
  5. Qoder CLI auto-generates the configuration file
  6. Find the generated file for fine-tuning:

Method 2: Manual Configuration (Advanced)

Create Markdown configuration files directly for full control over command prompts.

Configuration Format

Command files use Markdown format with YAML frontmatter and a system prompt:

Field Reference

Naming Conventions

  • Use lowercase letters and hyphens (e.g., git-commit)
  • Avoid spaces or special characters
  • Filename should match the name field
  • Commands inside subdirectories use : as the namespace separator (e.g., commands/git/commit.md registers as /git:commit)
  • frontmatter.name is only used as the display label in the TUI; the slash-command identity is always derived from the file path
  • If a directory contains SKILL.md, the directory registers as a single command (e.g., /git) and sibling .md files in the same directory are ignored
  • Command name segments are preserved verbatim with no character substitution; stick to typeable characters in filenames for the best experience

Example

A command for generating Git commit messages:

Storage Locations and Priority

Priority: Project-level commands take precedence over user-level commands with the same name. Run /commands to reload and list available slash commands after creating or modifying command files while Qoder CLI is running.

Using Custom Commands

View Command Details

  1. Run /commands in TUI to open the commands panel
  2. Press Tab to switch between User and Project tabs
  3. Select a command and press Enter to view details:
  4. Press Esc to exit the details view

Execute Commands

Type the command name (starting with /) in TUI. CLI auto-displays matching commands:
Press Enter to execute. CLI follows the command’s system prompt:

FAQ

Custom command not recognized

Problem: Created command doesn’t appear or execute in TUI Solution:
  1. Check file path (~/.qoder/commands/ or .qoder/commands/)
  2. Verify frontmatter format (starts and ends with ---)
  3. Run /commands to reload the command list. If the issue remains, restart CLI (/quit then run qodercli again).

Frontmatter parsing failed

Problem: YAML format is incorrect Solution:
  • Ensure frontmatter starts and ends with ---
  • Use | syntax for multi-line description fields
  • Check indentation (YAML is indentation-sensitive)