AnyTask CLI Usage Guide
Theanyt CLI is an AI-native task management tool built for Linear-style workflows. It supports both human users and AI agents as first-class citizens.
Table of Contents
- Installation
- Quick Start
- Authentication & Configuration
- Workspace Initialization
- Task Management
- Comments
- Dependency Management
- Active Task Tracking
- Board & Visualization
- Worker System
- Configuration
- Troubleshooting
Installation
Quick Start
1. Set Up Authentication
Set theANYT_API_KEY environment variable:
2. Initialize Workspace
.anyt/ directory with workspace configuration.
3. Verify Connection
4. Create and Manage Tasks
Authentication & Configuration
Environment Variables
Authentication is handled exclusively via environment variables:Health Check
Verify backend server connectivity:- Current API URL
- Server connectivity status
- Server version
Workspace Initialization
Initialize AnyTask in your project directory:--workspace-id, -w: Workspace ID to link to (required)--workspace-name, -n: Workspace name (optional)--identifier, -i: Workspace identifier (e.g., DEV, PROJ)--dir, -d: Directory to initialize (default: current)
.anyt/anyt.json workspace configuration:
Task Management
Create Tasks
Quick creation:-d, --description: Task description--phase: Phase/milestone identifier (e.g., T3, Phase 1)-p, --priority: Priority (-2 to 2, default: 0)--labels: Comma-separated labels--status: Task status (backlog, todo, in_progress, done, cancelled)--owner: Assign to user or agent ID--estimate: Time estimate in hours--project: Project ID--json: Output in JSON format
--template, -t: Template name to use (default: default)--phase: Phase/milestone identifier-p, --priority: Priority (-2 to 2)--project: Project ID--no-edit: Skip opening editor--json: Output in JSON format
List Tasks
--status: Filter by status (comma-separated)--mine: Show only tasks assigned to you--assignee, -a: Filter by assignee (user ID or agent ID)--me: Show only my tasks (alias for —mine)--labels: Filter by labels (comma-separated)--phase: Filter by phase/milestone--sort: Sort field (priority, updated_at, created_at, status)--order: Sort order (asc/desc)--limit: Max number of tasks to show--offset: Pagination offset--json: Output in JSON format
Show Task Details
IDENTIFIER: Task identifier (e.g., DEV-42, t_1Z for UID). Uses active task if not specified.
--workspace, -w: Workspace identifier or ID--show-metadata: Display workflow execution metadata--json: Output in JSON format
Edit Tasks
IDENTIFIER: Task identifier (uses active task if not specified)
--title: New title-d, --description: New description--status: New status-p, --priority: New priority (-2 to 2)--labels: Comma-separated labels (replaces all)--owner: New owner ID--estimate: New time estimate in hours--ids: Multiple task IDs (comma-separated, for bulk)--if-match: Expected version for optimistic locking--dry-run: Preview changes without applying--json: Output in JSON format
Bulk Update
task_ids: Comma-separated task identifiers (e.g., ‘DEV-1,DEV-2,DEV-3’)
--status, -s: New status for all tasks--priority, -p: New priority for all (-2 to 2)--assignee, -a: Assignee username or ID--project: Project identifier or ID--yes, -y: Skip confirmation prompt--json: Output as JSON
Mark as Done
IDENTIFIERS: Task identifier(s). Uses active task if not specified.
--note, -n: Add a completion note to the task--json: Output in JSON format
Delete Tasks
IDENTIFIERS: Task identifier(s). Uses active task if not specified.
--force, -f: Skip confirmation prompt--json: Output in JSON format
deleted_at timestamp).
Add Note to Task
anyt comment add instead for better structure.
Arguments:
IDENTIFIER: Task identifier (uses active task if not specified)
--message, -m: Note message to append--json: Output in JSON format
Share Task
IDENTIFIER: Task identifier (e.g., DEV-42, t_1Z for UID). Uses active task if not specified.
--copy, -c: Copy link to clipboard--json: Output in JSON format
Suggest Tasks
--limit: Number of suggestions to return (default: 3)--status: Filter by status (comma-separated, default: todo,backlog)--include-assigned: Include already-assigned tasks--json: Output in JSON format
Comments
Add Comment
IDENTIFIER: Task identifier. Uses active task if not provided.
--message, -m: Comment content (required)--json: Output as JSON
List Comments
IDENTIFIER: Task identifier. Uses active task if not provided.
--json: Output as JSON
Dependency Management
Add Dependencies
IDENTIFIER: Task identifier (uses active task if not specified)
--on: Task(s) this depends on (comma-separated identifiers, required)--json: Output in JSON format
Remove Dependencies
IDENTIFIER: Task identifier (uses active task if not specified)
--on: Task(s) to remove dependency on (comma-separated, required)--json: Output in JSON format
List Dependencies
IDENTIFIER: Task identifier (uses active task if not specified)
--json: Output in JSON format
- Dependencies (tasks this depends on) with status indicators
- Blocks (tasks that depend on this) with status indicators
- ✓ done
- ⬤ in_progress
- ⬜ backlog/todo
Active Task Tracking
Pick Active Task
IDENTIFIER: Task identifier (optional - shows interactive picker if not specified)
--status: Filter by status (comma-separated)--project: Filter by project ID--mine: Show only tasks assigned to you--json: Output in JSON format
.anyt/active_task.json for use as default in other commands.
Show Active Task
anyt task pick).
Board & Visualization
Kanban Board
--mine: Show only tasks assigned to you--assignee, -a: Filter by assignee (user ID or agent ID)--me: Show only my tasks (alias for —mine)--labels: Filter by labels (comma-separated)--status: Filter by status (comma-separated)--phase: Filter by phase/milestone--group-by: Group by (status, priority, owner, labels)--sort: Sort within groups (priority, updated_at)--compact: Compact display mode--limit: Max tasks per lane--json: Output in JSON format
Dependency Graph
IDENTIFIER: Task identifier to show dependencies for (shows all if not specified)
--format: Output format (ascii, dot, json)--status: Filter by status (comma-separated)--priority-min: Filter by minimum priority--labels: Filter by labels (comma-separated)--phase: Filter by phase/milestone--mine: Show only tasks assigned to you--depth: Max dependency depth to show--compact: Compact display mode--json: Output in JSON format
Timeline View
identifier: Task identifier (e.g., DEV-42)
--since: Show events since date (YYYY-MM-DD)--last: Show events from last N hours/days (e.g., 24h, 7d)--compact: Compact format--json: Output in JSON format
Workspace Summary
--period: Summary period (today, weekly, monthly)--phase: Filter by phase/milestone--format: Output format (text, markdown, json)--json: Output in JSON format
Worker System
Automated task execution for AI agents.Start Worker
--workspace, -w: Workspace directory (default: current)--workflow: Specific workflow to run (local_dev, feature_development, general_task)--workflows: Custom workflows directory (default: .anyt/workflows)--poll-interval, -i: Polling interval in seconds--max-backoff: Maximum backoff interval in seconds--agent-id, -a: Agent identifier (required)--project-id, -p: Project ID to scope task suggestions
local_dev: Direct implementation on current repositoryfeature_development: Full feature workflow with branch managementgeneral_task: General-purpose task execution
List Workflows
--workflows: Workflows directory (default: .anyt/workflows)
Validate Workflow
workflow_file: Workflow file to validate
Secret Management
Store secret:--value, -v: Secret value (or will prompt)
--show: Show the secret value (default: masked)
--yes, -y: Skip confirmation
Workflow Attempts
List attempts:Artifacts
Download artifact:--output, -o: Output file path--stdout: Print to stdout instead of file
Configuration
Configuration Files
.anyt/anyt.json - Workspace configuration:Environment Variables
Override configuration with environment variables:ANYT_API_KEY: Agent API key (required)ANYT_CONFIG_DIR: Override config directory (default: ~/.config/anyt)
JSON Output Mode
Most commands support--json flag for machine-readable output.
Success Response: