Command line interface #
You can interact with Vikunja using its
The following commands are available:
If you don’t specify a command, the
web command will be executed.
All commands use the same standard config file.
Using the cli in docker #
When running Vikunja in docker, you’ll need to execute all commands in the
Instead of running the
vikunja binary directly, run it like this:
docker exec <name of the vikunja api container> /app/vikunja/vikunja <subcommand>
Creates a zip file with all vikunja-related files. This includes config, version, all files and the full database.
$ vikunja dump
Shows more detailed help about any command.
$ vikunja help [command]
Run all database migrations which didn’t already run.
$ vikunja migrate [flags] $ vikunja migrate [command]
migrate list #
Shows a list with all database migrations.
$ vikunja migrate list
migrate rollback #
Roll migrations back until a certain point.
$ vikunja migrate rollback [flags]
--namestring: The id of the migration you want to roll back until.
Restores a previously created dump from a zip file, see
$ vikunja restore <path to dump zip file>
Sends a test mail using the configured smtp connection.
$ vikunja testmail <email to send the test mail to>
Bundles a few commands to manage users.
user change-status #
Enable or disable a user. Will toggle the current status if no flag (
--disable) is provided.
$ vikunja user change-status <user id> <flags>
--disable: Disable the user.
--enable: Enable the user.
user create #
Create a new user.
$ vikunja user create <flags>
--avatar-provider: The avatar provider of the new user. Optional.
--password: The password of the new user. You will be asked to enter it if not provided through the flag.
--username: The username of the new user.
user delete #
Start the user deletion process.
If called without the
--now flag, this command will only trigger an email to the user in order for them to confirm and start the deletion process (this is the same behavoir as if the user requested their deletion via the web interface).
With the flag the user is deleted immediately.
USE WITH CAUTION.
$ vikunja user delete <id> <flags>
--nowIf provided, deletes the user immediately instead of emailing them first.
user list #
Shows a list of all users.
$ vikunja user list
user reset-password #
Reset a users password, either through mailing them a reset link or directly.
$ vikunja user reset-password <flags>
--direct: If provided, reset the password directly instead of sending the user a reset mail.
--password: The new password of the user. Only used in combination with –direct. You will be asked to enter it if not provided through the flag.
user update #
Update an existing user.
$ vikunja user update <user id>
--avatar-provider: The new avatar provider of the new user.
--username: The new username of the user.
Prints the version of Vikunja.
This is either the semantic version (something like
0.7) or version + git commit hash.
$ vikunja version
Starts Vikunja’s REST api server.
$ vikunja web