This CLI allows you to manage TaskPulse projects, tasks, and subtasks via command-line commands. All output is JSON for easy parsing.
# Get overall status
./cli.js status
# Find high-priority tasks
./cli.js tasks --priority high
# Find pending tasks
./cli.js tasks --status pending# List all projects
./cli.js projects
# See tasks for specific project
./cli.js tasks --project 1
# Get full details of a task including subtasks
./cli.js task full 5# Add a new task
./cli.js task add 1 "Implement user authentication" --priority high
# Add subtasks to break down work
./cli.js subtask add 5 "Which auth method?" --options "JWT,OAuth,Sessions"# Start working on a task
./cli.js task start 5
# Complete a task
./cli.js task complete 5
# Answer a decision
./cli.js subtask answer 3 "JWT"# All in-progress tasks
./cli.js tasks --status in-progress
# Tasks for specific project that are pending
./cli.js tasks --project 1 --status pending
# High priority tasks across all projects
./cli.js tasks --priority highAll responses are JSON. Parse them to extract data:
{
"success": true,
"message": "Task created",
"task": { ... }
}[
{ "id": 1, "title": "Task 1", ... },
{ "id": 2, "title": "Task 2", ... }
]{
"error": "Task ID is required"
}- Always check status first - Get context before making changes
- Use full commands - Get complete task details with
task full <id> - Parse JSON carefully - Extract IDs and data from responses
- Provide context - When suggesting tasks, explain reasoning
- Confirm destructive actions - Before deleting, verify with user
User: "What do I need to work on today?"
AI Actions:
./cli.js status
./cli.js tasks --status pending --priority highAI Response: "You have 3 high-priority pending tasks:
- Implement user auth (Task #5)
- Design database schema (Task #3)
- Write API docs (Task #7)
Would you like me to start any of these?"
User: "Start the auth task"
AI Actions:
./cli.js task start 5
./cli.js task full 5AI Response: "Started Task #5: Implement user authentication. This task has a subtask asking which auth method to use. The options are JWT, OAuth, or Sessions. Which would you prefer?"
User: "JWT"
AI Actions:
./cli.js subtask answer 3 "JWT"AI Response: "Great! I've recorded JWT as your choice. The task is now in progress."
./cli.js projects # List all
./cli.js project add "Name" # Create
./cli.js project get <id> # Get one
./cli.js project full <id> # Get with tasks
./cli.js project delete <id> # Delete./cli.js tasks # List all
./cli.js tasks --project <id> # Filter by project
./cli.js tasks --status pending # Filter by status
./cli.js tasks --priority high # Filter by priority
./cli.js task add <project-id> "Title" # Create
./cli.js task start <id> # Start
./cli.js task complete <id> # Complete
./cli.js task reopen <id> # Reopen
./cli.js task delete <id> # Delete./cli.js subtasks <task-id> # List for task
./cli.js subtask add <task-id> "Question" # Create
./cli.js subtask answer <id> "Option" # Answer
./cli.js subtask delete <id> # Delete./cli.js status # Overview of everythingFull help available: ./cli.js help
cli.js projects [--status <status>]- List projectscli.js project add <name> [--description "text"]- Create projectcli.js project get <id>- Get project detailscli.js project full <id>- Get project with all taskscli.js project update <id> [--name "text"]- Update projectcli.js project archive <id>- Archive projectcli.js project delete <id>- Delete project
cli.js tasks [--project <id>] [--status <status>] [--priority <priority>]- List taskscli.js task add <project-id> <title> [--description "text"] [--priority <priority>]- Create taskcli.js task get <id>- Get task detailscli.js task full <id>- Get task with subtaskscli.js task update <id> [--title "text"]- Update taskcli.js task start <id>- Start taskcli.js task complete <id>- Complete taskcli.js task reopen <id>- Reopen taskcli.js task delete <id>- Delete task
cli.js subtasks <task-id>- List subtasks for taskcli.js subtask add <task-id> <question> [--options "opt1,opt2,opt3"]- Create subtaskcli.js subtask get <id>- Get subtask detailscli.js subtask answer <id> <option>- Answer subtaskcli.js subtask update <id> [--question "text"]- Update subtaskcli.js subtask delete <id>- Delete subtask
cli.js status- Overview of all projects and tasks