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-tuiWith Homebrew, add the tap and install the formula:
$ brew tap odonckers/redline https://github.com/odonckers/redline
$ brew install redlineBoth ways give you a redline command. Check that your shell finds it:
$ command -v redlineThe shell prints the path to the command.
2. Get your Redmine API key
Redline signs in with your personal Redmine API key.
- In Redmine, open My account.
- Under API access key, click Show.
- 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 ~/.zshrc4. 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/redlinePut one provider in it. Replace the URL with the address of your Redmine:
[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
$ redlineRedline 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:
| Key | Does |
|---|---|
j k | Move down and up |
l | Move from the sidebar to the list, and from the list to the item |
Enter | Open the item under the cursor |
s | Query the tracker, for example assignee:me status:open |
? | Show every key |
q | Quit |
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"
$ redlineNext steps
- Add a second tracker and saved views in Configuration.
- Learn the filters in Queries.
- Read every binding in Keys.