2. Tasks from the terminal
Create, list and open tasks, move them on the board and script tmgr with JSON.
In this lesson you create tasks, look at them and move them across the board without opening the browser. You need a signed-in tmgr: see 1. Install and sign in.
Create a task
tmgr add "Write release notes" -p <project>Put the title in quotes and pass the project code with -p (or --project). tmgr prints the key of the new task and its link in the web app.
Set the status with -s (or --status) and a status name. Without it, the task gets the workspace's default status.
To add a description from a file, use --desc-file:
tmgr add "Write release notes" -p <project> --desc-file notes.mdList and open tasks
tmgr task listIt shows the tasks of the current workspace: key, status and title. Filter the list:
--project <project>(or-p): one project.--status-type <type>: one type of status,default,active,completed,hiddenorarchived.--limit <n>: how many tasks to show (50 by default).--cursorgets the next page.
tmgr task list --project <project> --status-type activeOpen one task by its key:
tmgr task show TM-123The board
tmgr boardA kanban board right in the terminal.
- Arrow keys, or
hjkl, move between columns and cards. - Enter opens and closes the card details.
- Shift+L moves the card to the next status, Shift+H to the previous one.
sstarts the timer on the card, Shift+S stops it.cadds a comment./searches,?shows help,qquits.
--project <project> shows one project, --mine only your tasks, and --ascii draws the board with plain ASCII characters.
tmgr board --project <project> --mineJSON for scripts
Add --json to a command to get machine-readable output with a stable schema, tmgr.v1. The result is inside .data. For example, print the keys of the tasks in Backlog with jq:
tmgr task list --json | jq -r '.data.items[] | select(.status.name=="Backlog") | .ref'The schemas are in the tmgr source.
Create a task from stdin
Pass - instead of the title and add reads the task from standard input: the first line is the title, the rest is the description.
echo "Fix broken links on /blog" | tmgr add - -p <project>More
Back to the command line guide for everything else tmgr can do.
Video transcript
Lesson two: tasks, right from the terminal. Create them, list them, and move them across the board, without opening a browser.
New task
To create a task, use tmgr add: the title in quotes, and the project with the -p flag. You get back the task number and a link to it on the web. You can set a status with -s; otherwise the task gets the workspace's default status.
tmgr add "Write release notes" -p <project>List
tmgr task list shows the workspace's tasks: number, status and title. You can filter them by project and by status type. And tmgr task show opens a single task by its number.
tmgr task list
tmgr task show TM-123Board
This is the board: a kanban board, right in your terminal. Arrow keys move between columns and cards, Enter opens the details, and Shift+L moves a card to the next status. You can also start a timer or leave a comment from here.
tmgr boardScripts
For scripts, commands have a --json flag with a stable schema. For example, let's pull the numbers of backlog tasks with jq. And if you pass a dash instead of a title, tmgr add reads the task from standard input.
tmgr task list --json | jq -r '.data.items[] | select(.status.name=="Backlog") | .ref'
echo "Fix broken links on /blog" | tmgr add - -p <project>Next
That's it for tasks. In the next lesson: the work cycle, with tmgr start and tmgr done, branches, the timer, and review. See 3. The start → done cycle.