1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
use clap::{Parser, Subcommand};
/// Vibe Kanban CLI - Terminal-based real-time task list
#[derive(Parser, Debug)]
#[command(name = "vibe-kanban-cli")]
#[command(author, version, about, long_about = None)]
pub struct Args {
/// Vibe Kanban server URL
#[arg(short, long, default_value = "http://localhost:5173")]
pub server: String,
/// Enable debug logging
#[arg(short, long)]
pub debug: bool,
#[command(subcommand)]
pub command: Command,
}
#[derive(Subcommand, Debug)]
pub enum Command {
/// Create a task and start an attempt immediately
Create {
/// Project ID or name
#[arg(long)]
project: String,
/// Prompt for the task (stored as description)
#[arg(long)]
prompt: String,
/// Optional title (defaults to a shortened prompt)
#[arg(long)]
title: Option<String>,
/// Task status: todo, inprogress, inreview, done, cancelled
#[arg(long, default_value = "todo")]
status: String,
/// Tool/executor to use (e.g. codex, claude-code, cursor, gemini)
#[arg(long, alias = "executor", default_value = "codex")]
tool: String,
/// Model/variant for the executor
#[arg(long)]
model: Option<String>,
/// Repo/worktree to use (name, display name, or UUID). Can be repeated.
/// Use "repo@branch" to override per-repo branch.
#[arg(long = "repo", alias = "worktree")]
repos: Vec<String>,
/// Branch name (default branch by default)
#[arg(long)]
branch: Option<String>,
/// Watch the created task in real time
#[arg(long)]
watch: bool,
},
/// Watch tasks in real time (board view or single task)
Watch {
/// Project ID or name (required for board or slug watch)
#[arg(long)]
project: Option<String>,
/// Task ID to watch
#[arg(long)]
task: Option<String>,
/// Task slug (derived from title) to watch
#[arg(long)]
slug: Option<String>,
},
}