---
title: "CLI Quick Start - Autohand Code Docs"
source: https://docs.autohand.ai/guides/cli-quick-start
---

# CLI Quick Start

Master the Autohand Code command-line interface in minutes. Learn essential commands and productivity workflows for AI-assisted coding.

**Pro Tip:** The CLI is perfect for automation, scripting, and headless workflows. Use `autohand --help` to explore all available commands.

## Your First Commands

Start with these essential commands to get familiar with the Autohand Code CLI:

### Check Installation

### Authentication

### Quick Code Generation

## Essential Workflows

Master these common workflows to boost your productivity:

### 1\. Rapid Prototyping

### 2\. Code Refactoring

### 3\. Test Generation

### 4\. Documentation Generation

## Productivity Tips

### Use Aliases for Common Commands

### Pipe Mode for Workflows

### Batch Operations

### Configuration Files

## Command Reference

### Core Commands

| Command | Description | Example |
|---|---|---|
| generate | Generate code from description | autohand generate "Create API server" |
| refactor | Refactor existing code | autohand refactor --file old.js |
| test | Generate and run tests | autohand test --generate --file app.js |
| docs | Generate documentation | autohand docs --readme |
| create | Create new project | autohand create --type web-app |
| enhance | Enhance existing code | autohand enhance --add-logging |

### Utility Commands

| Command | Description | Example |
|---|---|---|
| analyze | Analyze code quality | autohand analyze --directory src/ |
| optimize | Optimize performance | autohand optimize --file app.js |
| security | Security analysis | autohand security --scan |
| config | Manage configuration | autohand config --show |
| status | Show system status | autohand features |

## Advanced Features

### Templates and Snippets

### Integration with Git

### Headless Mode

## Common Issues

### Command Not Found

### Authentication Errors

### Slow Performance

## Next Steps

Now that you're comfortable with the CLI, explore these advanced topics:

[

### Complete CLI Reference

Comprehensive documentation of all commands and options.

25 min](/docs/working-with-autohand-code/cli-reference.html)[

### CI/CD Automation

Integrate Autohand Code into your development pipeline.

18 min](/docs/guides/ci-cd-automation.html)[

### Pipe Mode

Learn advanced pipe mode workflows and chaining.

12 min](/docs/working-with-autohand-code/pipe-mode.html)[

### Headless Mode

Use Autohand Code in CI/CD and automation scripts.

10 min](/docs/working-with-autohand-code/headless-mode.html)