Skip to main content

Overview

The /help command displays comprehensive help information about Qwen Code, including available commands, keyboard shortcuts, and usage tips.

Usage

In Interactive Mode

qwen
> /help

Alternative Names

The following aliases are available:
  • /help
  • /?

What It Displays

The /help command shows:
  1. Available Commands: List of all slash commands with descriptions
  2. Keyboard Shortcuts: Interactive mode key bindings
  3. Quick Tips: Usage tips and best practices
  4. Documentation Links: Links to online documentation
  5. Version Information: Current CLI version

Help Output

When you run /help, you’ll see:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                    Qwen Code Help                              
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

 Available Commands:
  /help, /?          - Show this help information
  /auth, /login      - Configure authentication
  /model             - Switch the active model
  /clear, /reset     - Clear conversation history
  /compress          - Compress context window
  /stats, /usage     - View session statistics
  /bug               - Submit a bug report
  /quit, /exit       - Exit Qwen Code

 Keyboard Shortcuts:
  Ctrl+C            - Cancel current operation
  Ctrl+D            - Exit Qwen Code
  Esc               - Clear input / Cancel
  Up/Down arrows    - Navigate command history
  Tab               - Autocomplete commands

 Documentation:
  https://qwen.ai/docs

 Version: 1.0.0
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Command-Line Help

Get help from the command line:
qwen --help
This displays:
Usage: qwen [options] [command]

Qwen Code - Launch an interactive CLI, use -p/--prompt for non-interactive mode

Options:
  --model, -m <model>              Model to use
  --prompt, -p <prompt>            Prompt (appended to stdin)
  --prompt-interactive, -i         Execute prompt and continue in interactive mode
  --yolo, -y                       Auto-approve all actions
  --approval-mode <mode>           Set approval mode: plan, default, auto-edit, yolo
  --output-format, -o <format>     Output format: text, json, stream-json
  --continue, -c                   Resume most recent session
  --resume, -r [session-id]        Resume specific session
  --session-id <id>                Specify session ID
  --debug, -d                      Enable debug mode
  --help, -h                       Display help information
  --version, -v                    Display version information

Examples:
  qwen                             Launch interactive mode
  qwen --prompt "Hello"            Run one-shot command
  qwen -i "Setup project"          Run prompt then continue interactively
  qwen --yolo -p "Fix bugs"        Auto-approve all actions
  qwen --continue                  Resume last session

Documentation: https://qwen.ai/docs

Version Information

Check the installed version:
qwen --version
Output:
Qwen Code CLI v1.0.0

Quick Tips

New to Qwen Code? Start with these commands:
  1. Configure authentication: /auth
  2. Ask a question: Just type naturally
  3. View statistics: /stats
  4. Clear history when needed: /clear
Commands starting with / are special instructions:
  • Type / and press Tab to see all commands
  • Commands can have aliases (e.g., /help = /?)
  • Some commands have subcommands (e.g., /stats model)
Keep your context clean:
  • Use /clear to start fresh conversations
  • Use /compress when approaching token limits
  • Resume previous sessions with --continue

Context-Specific Help

Getting Help with Commands

For help with a specific topic:
qwen
> Tell me how to use the compress command
The AI will provide detailed guidance.

Model-Specific Help

Learn about available models:
qwen
> What models are available and which should I use?

Tool-Specific Help

Understand available tools:
qwen
> What tools can you use and what do they do?

Common Questions

Use the /model command in interactive mode:
/model
Or specify a model when starting:
qwen --model qwen-coder-plus
Conversations are automatically saved. Resume them with:
qwen --continue
Or export conversation history:
/export
Use the built-in bug reporter:
/bug "Description of the issue"
This automatically includes system information.
Use headless mode with the --prompt flag:
qwen --prompt "Your command" --output-format json
See the Headless Mode guide.

Online Documentation

For comprehensive documentation, visit:

See Also

CLI Overview

Complete CLI reference and examples

Quickstart

Get started with Qwen Code

Configuration

Customize settings and behavior

Interactive Mode

Learn about interactive features

Build docs developers (and LLMs) love