CLI Reference
Complete reference for AnyTask CLI commands and usage.Overview
AnyTask CLI provides a comprehensive set of commands for managing tasks, workspaces, and projects from the command line. This section covers all available commands, their options, and usage examples.Quick Navigation
- Commands Reference - Complete auto-generated command reference
- Usage Guide - Common workflows and examples
Command Categories
Initialization & Authentication
Initialize workspace and configure authentication:Task Management
Core task operations:Local Task Sync
Pull and push tasks between server and local filesystem:Comments
Manage task comments:Coding Agent Integration
Manage coding agent integrations:Reporting
Generate reports and summaries:Worker System
Automated task execution:Workflow Artifacts & Attempts
Track workflow execution:CLI Management
Manage CLI installation and configuration:Output Formats
Most commands support JSON output for scripting:Global Options
Available for all commands:Environment Variables
Override configuration with environment variables:ANYT_API_KEY- Agent API key (required for authentication)ANTHROPIC_API_KEY- Anthropic API key (for Claude Code actions)
Exit Codes
The CLI uses standard exit codes:| Code | Description |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid command or arguments |
| 3 | Authentication error |
| 4 | Not found (task, workspace, etc.) |
| 5 | Validation error |