> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/QwenLM/qwen-code/llms.txt
> Use this file to discover all available pages before exploring further.

# /help Command

> Display help information and available commands

## Overview

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

## Usage

### In Interactive Mode

```bash theme={null}
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:

```bash theme={null}
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:

```bash theme={null}
qwen --version
```

Output:

```
Qwen Code CLI v1.0.0
```

## Quick Tips

<AccordionGroup>
  <Accordion title="Getting Started">
    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`
  </Accordion>

  <Accordion title="Slash Commands">
    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`)
  </Accordion>

  <Accordion title="Navigation">
    Use keyboard shortcuts for efficiency:

    * **Up/Down**: Scroll through command history
    * **Ctrl+C**: Stop current operation
    * **Tab**: Autocomplete commands and file paths
    * **Esc**: Clear input or cancel action
  </Accordion>

  <Accordion title="Context Management">
    Keep your context clean:

    * Use `/clear` to start fresh conversations
    * Use `/compress` when approaching token limits
    * Resume previous sessions with `--continue`
  </Accordion>
</AccordionGroup>

## Context-Specific Help

### Getting Help with Commands

For help with a specific topic:

```bash theme={null}
qwen
> Tell me how to use the compress command
```

The AI will provide detailed guidance.

### Model-Specific Help

Learn about available models:

```bash theme={null}
qwen
> What models are available and which should I use?
```

### Tool-Specific Help

Understand available tools:

```bash theme={null}
qwen
> What tools can you use and what do they do?
```

## Common Questions

<AccordionGroup>
  <Accordion title="How do I change models?">
    Use the `/model` command in interactive mode:

    ```bash theme={null}
    /model
    ```

    Or specify a model when starting:

    ```bash theme={null}
    qwen --model qwen-coder-plus
    ```
  </Accordion>

  <Accordion title="How do I save my conversation?">
    Conversations are automatically saved. Resume them with:

    ```bash theme={null}
    qwen --continue
    ```

    Or export conversation history:

    ```bash theme={null}
    /export
    ```
  </Accordion>

  <Accordion title="How do I report bugs?">
    Use the built-in bug reporter:

    ```bash theme={null}
    /bug "Description of the issue"
    ```

    This automatically includes system information.
  </Accordion>

  <Accordion title="How do I use Qwen Code in scripts?">
    Use headless mode with the `--prompt` flag:

    ```bash theme={null}
    qwen --prompt "Your command" --output-format json
    ```

    See the [Headless Mode](/features/headless-mode) guide.
  </Accordion>
</AccordionGroup>

## Online Documentation

For comprehensive documentation, visit:

* **Main Docs**: [https://qwen.ai/docs](https://qwen.ai/docs)
* **API Reference**: [https://qwen.ai/docs/api-reference](https://qwen.ai/docs/api-reference)
* **GitHub**: [https://github.com/QwenLM/qwen-code](https://github.com/QwenLM/qwen-code)
* **Community**: [Discord](https://discord.gg/qwen) or [GitHub Discussions](https://github.com/QwenLM/qwen-code/discussions)

## See Also

<CardGroup cols={2}>
  <Card title="CLI Overview" icon="terminal" href="/cli/overview">
    Complete CLI reference and examples
  </Card>

  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Get started with Qwen Code
  </Card>

  <Card title="Configuration" icon="gear" href="/configuration/settings">
    Customize settings and behavior
  </Card>

  <Card title="Interactive Mode" icon="messages" href="/features/interactive-mode">
    Learn about interactive features
  </Card>
</CardGroup>
