Skip to content

Configuration

The easiest way to configure redmine-cli is the interactive wizard:

Terminal window
redmine init

This walks you through setting your server URL, authentication method, and optionally selecting a default project. Configuration is saved to ~/.redmine-cli.yaml.

The config file (~/.redmine-cli.yaml) supports the following settings:

server: https://redmine.example.com
auth_method: apikey # "apikey" or "basic"
api_key: your-api-key
username: "" # for basic auth
password: "" # for basic auth
default_project: myproject # optional
output_format: table # table, wide, json, csv
no_color: false
page_size: 25

All settings can be overridden with environment variables prefixed with REDMINE_:

Terminal window
export REDMINE_SERVER=https://redmine.example.com
export REDMINE_API_KEY=your-api-key
export REDMINE_AUTH_METHOD=apikey

These flags can be used with any command to override config values:

FlagDescription
-s, --serverRedmine server URL
-k, --api-keyAPI key for authentication
--configConfig file path (default ~/.redmine-cli.yaml)
--no-colorDisable colored output
-v, --verboseEnable debug logging
Terminal window
redmine config

Displays the active server, auth method, default project, and output format.