How To Install And Use The Taskwarrior Command-Line Todo List
- by Tech Today News
- Posted on February 2, 2023
If you want a very efficient way to keep track of your task lists from the command line, Taskwarrior is the tool to use. I use several task management tools, with most in the form of either a desktop or web-based application that offers a well-designed and easy-to-use graphical user interface to make the job simple. However, there are instances when I don’t have access to a GUI, such as when I’m working on a remote server and still want to keep a list of tasks. In those scenarios, a tool like Taskwarrior comes in handy. SEE: Hiring kit: Back-end Developer (TechRepublic Premium) With Taskwarrior, I can manage a to-do list from the command line that does one thing and one thing only: keeps a list of tasks. Taskwarrior is unobtrusive, methodology-neutral, in active development, open source and easy to use. With this tool, I can keep individual task lists on different servers and know what needs to be done on each one after logging in. In this tutorial, I’ll show you how to install and use this handy command-line task manager. Jump to: To install Taskwarrior, you’ll need a running instance of Linux. Taskwarrior can also be installed on macOS with the help of Homebrew and Windows via WSL. I’ll demonstrate on Pop!_OS, so all you’ll need to do is alter the installation command to match your distribution of choice. For example,
With that said, let’s get to the installation. Taskwarrior is found on my distribution standard repository, which means the installation is straightforward. To begin, log in to your Linux instance and install with one of the following commands, dependent upon what you’re running: Once Taskwarrior is installed, you’re ready to get started with using it. Taskwarrior is easy to use. Let’s say you want to add the task Update server and reboot. The command for that would be:
When you run your first add command, you’ll be greeted with something like this:
Make sure to type “yes,” so the configuration file can be automatically created. Once that happens, the task will be added. You can then continue adding as many tasks as you like. As you add each task, it will be assigned a number. You can then view your tasks with the following command:
Each task will be listed in numerical order of creation (Figure A). Figure A Let’s say I’m finished with the first task I created, which was given ID 1. To delete that task, issue this command:
You should see something like this in the output:
You can then verify the task was deleted by issuing the list command again like so:
Taskwarrior is fairly basic in its features, but you wouldn’t want much more from an open-source, command-line task manager. Employ this on any machine that either doesn’t include a GUI or for a use case where all you need is the absolute basics. In these kinds of situations, you’ll find Taskwarrior will serve you well. Read next: The 10 best project management software and tools (TechRepublic)What you’ll need to install and use Taskwarrior
sudo apt-get
is replaced by
sudo dnf
.How to install Taskwarrior
sudo apt-get install taskwarrior -y
sudo dnf install task
zypper install taskwarrior
pacman -S task
sbopkg -i task
brew install task
How to use Taskwarrior
task add Update server and reboot
A configuration file could not be found in /home/jack
Would you like a sample /home/jack/.taskrc created, so Taskwarrior can proceed? (yes/no)
task list
task 1 done
Completed task 1 'Write article about Taskwarrior.'
Completed 1 task.
task list
Final tips for using Taskwarrior
If you want a very efficient way to keep track of your task lists from the command line, Taskwarrior is the tool to use. Image: ribkhan/Adobe Stock I use several task management tools, with most in the form of either a desktop or web-based application that offers a well-designed and easy-to-use graphical user interface to…