/). Type / in TUI mode to view available commands and select one to execute.
Quick Start
In TUI mode:-
Start Qoder CLI:
-
Type
/to view the command list -
Select a command and press Enter to execute:
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).Method 1: AI-Assisted Generation (Recommended)
Use TUI’s built-in AI assistance to quickly generate command configurations:-
Run
/commandsin TUI to open the commands panel -
Press
Tabto switch to User or Project tab -
Select “Create new command…” and press
Enter -
Describe the command you want to create:
- Qoder CLI auto-generates the configuration file
-
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
namefield - Commands inside subdirectories use
:as the namespace separator (e.g.,commands/git/commit.mdregisters as/git:commit) frontmatter.nameis 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.mdfiles 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
-
Run
/commandsin TUI to open the commands panel -
Press
Tabto switch between User and Project tabs -
Select a command and press
Enterto view details: -
Press
Escto exit the details view
Execute Commands
Type the command name (starting with/) in TUI. CLI auto-displays matching commands:
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:- Check file path (
~/.qoder/commands/or.qoder/commands/) - Verify frontmatter format (starts and ends with
---) - Run
/commandsto reload the command list. If the issue remains, restart CLI (/quitthen runqodercliagain).
Frontmatter parsing failed
Problem: YAML format is incorrect Solution:- Ensure frontmatter starts and ends with
--- - Use
|syntax for multi-linedescriptionfields - Check indentation (YAML is indentation-sensitive)