Command line
Command line
MK has one binary with two modes:
mk [flags]starts the web board.mk tui [flags]opens the terminal board.
mk
| Flag | Default | Meaning |
|---|---|---|
-dir <path> | docs | The folder that holds the task files. Relative paths are resolved from the current directory. |
-host <address> | 127.0.0.1 | A specific IP address or hostname to bind to. |
-port <n> | 8080 | The first port to try. If it is in use, MK tries the next ports, up to 100 in all. |
-version | Print the version, commit, and build date, then exit. |
Starting mk prints the address it is serving:
MK // Kanban starting on http://127.0.0.1:8080Watching directory: docsIf -dir does not exist, MK creates it. If .kanban.yml is missing, MK creates
one. See Columns.
mk -dir my-tasks -port 9000mk tui
| Flag | Default | Meaning |
|---|---|---|
-dir <path> | docs | The folder that holds the task files. |
-no-mouse | off | Turn off mouse capture, so the terminal can select text natively. |
-version | Print the build version and exit. It does not open the task folder. |
-host and -port are web options.
mk tui -dir my-tasks -no-mouseFor what the terminal board does, see the terminal board guide.
Network access
The web server binds to 127.0.0.1 by default. To share the board on a trusted
network, set -host to a specific local interface address or hostname and open
the URL MK prints. With the default binding, localhost is also an accepted
host. Requests with an Origin header must match the URL’s origin.
MK has no login. Anyone who can reach the configured address can read and change your tasks. Keep the port off the public internet.
Files MK writes
.kanban.ymlis created in the task folder if it is missing. MK does not change it after that.- Task files change only when you move a card, edit tags, or save a file in the web or terminal board.
- Terminal preferences are stored outside the task folder, per task folder.
On Linux they are in
$XDG_STATE_HOME/mk/, which defaults to~/.local/state/mk/. On macOS and Windows they are in the user config folder, undermk/state/.
Exit status
If MK cannot start, for example because it cannot create the task folder or no port is free, it prints the error to standard error and exits with a non-zero status. Invalid flags also stop MK before it starts.
Development runs
When you run MK from source, go run . takes the same flags as mk, and
go run . tui takes the same flags as mk tui. See Development.