2019-03-31 21:54:17 +02:00
|
|
|
---
|
|
|
|
date: "2019-03-31:00:00+01:00"
|
|
|
|
title: "CLI"
|
|
|
|
draft: false
|
|
|
|
type: "doc"
|
|
|
|
menu:
|
|
|
|
sidebar:
|
|
|
|
parent: "usage"
|
|
|
|
---
|
|
|
|
|
|
|
|
# Command line interface
|
|
|
|
|
|
|
|
You can interact with Vikunja using its `cli` interface.
|
|
|
|
The following commands are available:
|
|
|
|
|
2020-07-14 09:34:32 +02:00
|
|
|
* [dump](#dump)
|
2019-03-31 21:54:17 +02:00
|
|
|
* [help](#help)
|
|
|
|
* [migrate](#migrate)
|
2020-07-14 09:34:32 +02:00
|
|
|
* [restore](#restore)
|
|
|
|
* [testmail](#testmail)
|
2019-03-31 21:54:17 +02:00
|
|
|
* [version](#version)
|
|
|
|
* [web](#web)
|
|
|
|
|
|
|
|
If you don't specify a command, the [`web`](#web) command will be executed.
|
|
|
|
|
|
|
|
All commands use the same standard [config file]({{< ref "../setup/config.md">}}).
|
|
|
|
|
2020-07-14 09:34:32 +02:00
|
|
|
### `dump`
|
|
|
|
|
|
|
|
Creates a zip file with all vikunja-related files.
|
|
|
|
This includes config, version, all files and the full database.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
{{< highlight bash >}}
|
|
|
|
$ vikunja dump
|
|
|
|
{{< /highlight >}}
|
|
|
|
|
2019-03-31 21:54:17 +02:00
|
|
|
### `help`
|
|
|
|
|
|
|
|
Shows more detailed help about any command.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
|
|
|
{{< highlight bash >}}
|
|
|
|
$ vikunja help [command]
|
|
|
|
{{< /highlight >}}
|
|
|
|
|
|
|
|
### `migrate`
|
|
|
|
|
|
|
|
Run all database migrations which didn't already run.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
{{< highlight bash >}}
|
|
|
|
$ vikunja migrate [flags]
|
|
|
|
$ vikunja migrate [command]
|
|
|
|
{{< /highlight >}}
|
|
|
|
|
|
|
|
#### `migrate list`
|
|
|
|
|
|
|
|
Shows a list with all database migrations.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
{{< highlight bash >}}
|
|
|
|
$ vikunja migrate list
|
|
|
|
{{< /highlight >}}
|
|
|
|
|
|
|
|
#### `migrate rollback`
|
|
|
|
|
|
|
|
Roll migrations back until a certain point.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
{{< highlight bash >}}
|
|
|
|
$ vikunja migrate rollback [flags]
|
|
|
|
{{< /highlight >}}
|
|
|
|
|
|
|
|
Flags:
|
|
|
|
* `-n`, `--name` string: The id of the migration you want to roll back until.
|
|
|
|
|
2020-07-14 09:34:32 +02:00
|
|
|
### `restore`
|
2019-03-31 21:54:17 +02:00
|
|
|
|
2020-07-14 09:34:32 +02:00
|
|
|
Restores a previously created dump from a zip file, see `dump`.
|
2019-03-31 21:54:17 +02:00
|
|
|
|
|
|
|
Usage:
|
|
|
|
{{< highlight bash >}}
|
2020-07-14 09:34:32 +02:00
|
|
|
$ vikunja restore <path to dump zip file>
|
2019-03-31 21:54:17 +02:00
|
|
|
{{< /highlight >}}
|
|
|
|
|
2020-07-14 09:34:32 +02:00
|
|
|
### testmail
|
2019-03-31 21:54:17 +02:00
|
|
|
|
2020-07-14 09:34:32 +02:00
|
|
|
Sends a test mail using the configured smtp connection.
|
2019-03-31 21:54:17 +02:00
|
|
|
|
|
|
|
Usage:
|
|
|
|
{{< highlight bash >}}
|
2020-07-14 09:34:32 +02:00
|
|
|
$ vikunja testmail <email to send the test mail to>
|
2020-06-19 23:29:02 +02:00
|
|
|
{{< /highlight >}}
|
|
|
|
|
2020-07-14 09:34:32 +02:00
|
|
|
### `version`
|
2020-06-19 23:29:02 +02:00
|
|
|
|
2020-07-14 09:34:32 +02:00
|
|
|
Prints the version of Vikunja.
|
|
|
|
This is either the semantic version (something like `0.7`) or version + git commit hash.
|
2020-06-19 23:29:02 +02:00
|
|
|
|
|
|
|
Usage:
|
|
|
|
{{< highlight bash >}}
|
2020-07-14 09:34:32 +02:00
|
|
|
$ vikunja version
|
2020-06-19 23:29:02 +02:00
|
|
|
{{< /highlight >}}
|
2020-06-21 17:34:34 +02:00
|
|
|
|
2020-07-14 09:34:32 +02:00
|
|
|
### `web`
|
2020-06-21 17:34:34 +02:00
|
|
|
|
2020-07-14 09:34:32 +02:00
|
|
|
Starts Vikunja's REST api server.
|
2020-06-21 17:34:34 +02:00
|
|
|
|
|
|
|
Usage:
|
|
|
|
{{< highlight bash >}}
|
2020-07-14 09:34:32 +02:00
|
|
|
$ vikunja web
|
2020-06-21 17:34:34 +02:00
|
|
|
{{< /highlight >}}
|