Taskwarrior  command reference

task [<filter>] <command> [<mods>]  ·  filter <attr>:<value> · <DOM> · <ID range> · boolean terms  ·  mods set / remove / replace, depends:, +tag, −tag
Five frames, seven rails. The header rule of each frame turns down into its rails and every rail bends back out at the foot, so which group a block belongs to is read from the frame around it — no colour key, no colour anywhere on the sheet. Names checked against task 3.5.0.
Syntax & filtering

Basic usage

task add Pay the bills task add Call the bank task list task 1 modify due:Friday task 1 done task 2 delete

Shell quoting

escapetask add John\'s birthday quotetask add "John's birthday"
Escape these: $ ! ' " ( ) ; \ ` * ? { } [ ] < > | & % # ~

Searching for text

task desc.contains:foo task /foo/ task description ~ foo

Abbreviations

task project:Home list task projec:Home  lis task pro:Home     li
Any command or attribute may be abbreviated as long as it stays unique.

ID ranges id or uuid

task 1 infoone task task 1-10 inforange task 1,3,5,6-10mixed list task 1 2 3 infospace separated

Document object model

task _get 123.description task add … due:123.due task _get rc.dateformat :: rc.<name> · system.<version|os> :: <id|uuid>.<attribute>

Terms & grammar

<term> [<op> …]expression of terms <attr>:<value>basic term <attr>.<mod>:<value>modified term <DOM>see document object model <ID range>1-10, 1,3,5, 1 2 3 <UUID list>space separated uuids

Attribute modifiers

beforeunder, below afterover, above byon or before none / anyempty / not empty is / isntequals / not has / hasntcontains / not startswithleft endswithright word / nowordword boundaried
task urgency.under:4     list task due.before:eom       list
3.5.0 spells the negatives isnt and noword — the card's isn't/nonword are rejected — and adds by.

Operators

and or xorboolean terms + − * / % ^arithmetic ~ !~regex match / not < <= > >=comparison == !==exact equality = !=partial equality _hastag_ _notag_tag / no tag ( )precedence
Configuration

Overrides

rc.<var>=<val>runtime rc:<file>other config file --stop parsing

Configuration command

task show [<var>] task config <var> <value> task config <var> task config <var> ''

Report configuration

report.NAME.filter report.NAME.columns report.NAME.labels report.NAME.sort report.NAME.context
A report is a filter plus a column set; that is all a view is, so task report.NAME.… is the whole customisation surface.

UDA configuration

uda.NAME.type=TYPE uda.NAME.label=LABEL uda.NAME.value=VAL,VAL,… :: string, date, duration, numeric

Sync 3.x · TaskChampion

task config sync.server.url task config sync.server.client_id task config sync.encryption_secret task sync init  (first time) task sync
A server URL plus a client id is the whole handshake. The taskd.* keys on the old card were 2.x; 3.x has no taskd in task show at all.

Date formats

rc.dateformat=YMD_HNS :: date and time rc.dateformat=YMD :: date only
Commands

Reports task reports

active · all · blocked · blocking · burndown.annual · burndown.daily · burndown.monthly · burndown.weekly · completed · ghistory.annual · ghistory.daily · ghistory.monthly · ghistory.weekly · history.annual · history.daily · history.monthly · history.weekly · information · list · long · ls · minimal · newest · next · oldest · overdue · projects · ready · recurring · summary · tags · timesheet · unblocked · waiting
A report is a filter plus a column set; add your own with report.<name>.*.

Annotations

task <id> annotate foo task <id> denotate foo :: add / remove an annotation

Contexts

task context define work +work task context work · activate task context none task context · list task context delete work

Import / export JSON

task [<filter>] export task import <file> task import-v2 <file> 2.x data

Write

add · annotate · append · config · delete · denotate · done · duplicate · edit · import · import-v2 · log · modify · prepend · purge · start · stop · synchronize · undo

Read

<report> · info · count · export · ids · uuids · timesheet

Tools & introspection

calc · calendar · colors · columns · commands · context · diagnostics · execute · help · logo · news · reports · show · stats · udas · version · _get · _columns · _commands · _config · _context · _ids · _projects · _tags · _udas · _urgency · _uuids

Getting help

task help man task man taskrc man task-color man task-sync

Debugging

task rc.debug=1 task diagnostics task rc.debug.tls=<level> task rc.debug.parser=<level> task rc.debug.hooks=<level>

Recurrence

task add Pay rent recur:monthly due:1st task <id> done · spawns next task <id> modify recur: task <id> modify until:<date>
Modifications

Set, remove, replace

<attr>:<value>set <attr>:remove /from/to/greplace all /from/to/replace first depends:<id>add dependency depends:-<id>drop dependency +footag −foountag

Date symbols

yesterday · today · now · tomorrow · someday · easter · tuesday · 23rd · eow · eom · eoy · 1st
Arithmetic works on any of them: today+3d · today+1wk · eom+2w · eom and eoy land at 23:59:59.

Period symbols

hourly1hr daily5days weekly2wks monthly3months quarterly1q annual2years

Examples

task project:OLD modify      project:NEW task <id> modify /wrong/right/g task <id> modify wait:<date> task <id> modify until:<date> task rc.verbose=nothing … task '( pro:Home or      pro:Garden )' and +weekend
Attributes & tags

Task attributes

id · uuidunmodifiable urgencyunmodifiable descriptiontext projectgrouping prioritygrouping tags · statuslabels, state dependsother tasks recurrepeat untilexpire entrycreated waithide until scheduledready at startstarted duedue enddone / deleted modifiedlast change

Special tags

+next · +nonag · +nocal · +nocolor

Virtual tags

+ACTIVE · +ANNOTATED · +BLOCKED · +BLOCKING · +CHILD† · +COMPLETED · +DELETED · +DUE · +DUETODAY · +INSTANCE · +LATEST · +MONTH · +ORPHAN · +OVERDUE · +PARENT† · +PENDING · +PRIORITY · +PROJECT · +QUARTER · +READY · +SCHEDULED · +TAGGED · +TEMPLATE · +TODAY · +TOMORROW · +UDA · +UNBLOCKED · +UNTIL · +WAITING · +WEEK · +YEAR · +YESTERDAY
† deprecated since 2.6.0, still accepted. +DUE is due within rc.due days (7); +TEMPLATE/+INSTANCE are recurrence. The 2.6.0 card omits eight of these.