A command line interface for Vikunja > The todo app to organize your life. Manage your tasks and projects directly from the terminal with simple commands.
It provides a command line interface for adding, viewing and editing todo tasks on a Vikunja Server. The goal is to support a command line based task workflow ~ similar to taskwarrior.
New name for configuration file (config.rc) and XDG conform path lookup, see Configuration
vja --help
vja ls(You will be prompted for your account on first usage and any time the access token expires, see Features.md)
More user documentation is available on Features.md
(More on pipx here.)
pipx install vjaUpgrade an existing version:
pipx upgrade vjaNot recommended as it might break system dependencies.
python -m pip install --user vja
vja --helpBefore using vja you must provide a configuration. vja looks for its configuration at the following paths (in order):
$VJA_CONFIGDIR/config.rc$XDG_CONFIG_HOME/vja/config.rc$HOME/.config/vja/config.rc$HOME/.vjacli/vja.rc(deprecated - for backward compatibility only)
A full example can be found in config.rc.
- Create a configuration file at any valid path (see above) with the following minimal contents
(If you cloned from git, you may copy the folder
[application] frontend_url=https://try.vikunja.io/ api_url=https://try.vikunja.io/api/v1
.config/vjato your$HOME/.configdirectory instead.) - Adjust to your needs.
frontend_urlandapi_urlmust point to your own Vikunja server. Especially, the api_url must be reachable from your client. This can be verified, for example, bycurl https://mydomain.com/api/v1/info.
You may change the location of the configuration directory with an environment variable
like VJA_CONFIGDIR=/not/my/home.
| Section | Option | Description |
|---|---|---|
| [application] | api_url | The service instance of Vikunja to which vja should connect |
| [application] | frontend_url | Required to open Vikunja in Browser |
| Section | Option | Description |
|---|---|---|
| [output] | arbitrary_name | Python format strings which may be referenced on the command line by --custom-format=<option_name>. May contain any valid python f-Format string.Take care: The format string may provide code which will be executed at runtime! Do not use --custom-format if you are unsure.Default: missing |
| [output] | another_format | Multiple formats can be defined for reference. (see above) |
| [urgency_coefficients] | due_date_weight | Weight of dueness in urgency score. Default: 1.0 |
| [urgency_coefficients] | priority_weight | Weight of priority in urgency score. Default: 1.0 |
| [urgency_coefficients] | favorite_weight | Weight of is_favorite in urgency score. Default: 1.0 |
| [urgency_coefficients] | project_weight | Weight of keyword occurrence in project title in urgency score. Default: 1.0 |
| [urgency_coefficients] | label_weight | Weight of keyword occurrence in label title in urgency score. Default: 1.0 |
| [urgency_keywords] | lisproject_keywords | Tasks in projects with a title containing these keywords are considered more urgent. Default: None |
| [urgency_keywords] | label_keywords | Tasks labeled with one of these keywords are considered more urgent. Default: None |
Shell tab-completion can be enabled by generating a shell completion script (not specific to vja):
mkdir -p ~/.config/bash/completions
_VJA_COMPLETE=bash_source vja > ~/.config/bash/completions/vjaThen add to your ~/.bashrc:
source ~/.config/bash/completions/vjaNote: Instead of sourcing the completion script in .bashrc you can just move it to a folder which is supported by bash_completion (e.g. ~/.local/share/bash-completion/completions/).
mkdir -p ~/.config/zsh/completions
_VJA_COMPLETE=zsh_source vja > ~/.config/zsh/completions/vja.zshThen add to your ~/.zshrc:
source ~/.config/zsh/completions/vja.zshNote: The script location is just a suggestion; you can put it wherever you like.
If you use ohmyzsh, place completion scripts under
~/.oh-my-zsh/custom/completions.
_VJA_COMPLETE=fish_source vja > ~/.config/fish/completions/vja.fishNote: Fish completions in the directory above will be automatically loaded for new sessions.
Python >= 3.9 is recommended. First create a local environment:
python -m venv ./venv
source venv/bin/activate(That may be source venv/Scripts/activate on some windows machines.)
python -m pip install -r requirements_dev.txt
python -m pip install -e .Start docker container for vikunja/api:latest and execute pytest against that server instance:
docker compose -f tests/docker-compose.yml up -d
VJA_CONFIGDIR=tests/.vjatest pytest
docker compose -f tests/docker-compose.yml down