Getting started

In this guide you install Redline, connect it to one Redmine, and open your issues in the terminal. You need a Redmine account and about five minutes.

1. Install Redline

Install with npm or with Homebrew.

With npm, you need Node 24 or later. Check your version with node --version, then install the redline-tui package:

$ npm install -g redline-tui

With Homebrew, add the tap and install the formula:

$ brew tap odonckers/redline https://github.com/odonckers/redline
$ brew install redline

Both ways give you a redline command. Check that your shell finds it:

$ command -v redline

The shell prints the path to the command.

2. Get your Redmine API key

Redline signs in with your personal Redmine API key.

  1. In Redmine, open My account.
  2. Under API access key, click Show.
  3. Copy the key.

If you see no API access key, ask your Redmine administrator to turn on the REST web service.

3. Put the key in your environment

Redline reads tokens only from environment variables. It never reads a token from the config file.

Add the key to ~/.zshrc, or to the startup file of your shell:

export REDLINE_WORK_TOKEN="paste-your-key-here"

Load the file into the shell you have open:

$ source ~/.zshrc

4. Write a config file

Run redline config init to write a starting config file. To write it yourself, create ~/.config/redline/config.toml (redline config path prints where Redline looks):

$ mkdir -p ~/.config/redline

Put one provider in it. Replace the URL with the address of your Redmine:

config.toml
[providers.work]
kind = "redmine"
url = "https://redmine.example.com"

The provider is called work, so Redline reads its token from REDLINE_WORK_TOKEN. To use another variable, set token_env. Run redline config check to sign in to each provider and see what is wrong. See Configuration for every setting.

5. Run Redline

$ redline

Redline opens on the work provider. The sidebar lists the provider, your views, and its projects. The list shows the issues, and the status line at the bottom shows the mode, NORMAL or INSERT. A provider whose token is missing still shows, with the line to add.

Try these keys:

KeyDoes
j kMove down and up
lMove from the sidebar to the list, and from the list to the item
EnterOpen the item under the cursor
sQuery the tracker, for example assignee:me status:open
?Show every key
qQuit

No config file yet

To try Redline before you write a config file, set two variables. They define one Redmine provider called redmine:

$ export REDLINE_URL="https://redmine.example.com"
$ export REDLINE_TOKEN="paste-your-key-here"
$ redline

Next steps

Edit this page on GitHub