Skip to content

Configuration

  1. Start the login wizard:

    Terminal window
    redmine auth login
  2. Provide your Redmine server URL and authentication method (API key or username/password).

  3. Optionally set a default project — it is prepopulated in project-scoped commands.

  4. The wizard writes a profile to ~/.redmine-cli.yaml. You are ready to go.

You can authenticate against as many Redmine instances as you like. Each redmine auth login creates a named profile.

Terminal window
redmine auth login # second instance
redmine auth login --name work # with an explicit name
  • Directory~/
    • .redmine-cli.yaml active profile + all profile data
    • Directory.local/bin/
      • redmine binary (install script target)
~/.redmine-cli.yaml
active_profile: work
profiles:
work:
server: https://redmine.work.com
auth_method: apikey
api_key: your-api-key
default_project: myproject
output_format: table
personal:
server: https://redmine.personal.com
auth_method: apikey
api_key: another-key
output_format: json
CI friendly

Every setting can be overridden with a REDMINE_-prefixed variable:

Terminal window
export REDMINE_SERVER=https://redmine.example.com
export REDMINE_API_KEY=your-api-key
export REDMINE_AUTH_METHOD=apikey
# opt out of the startup update check
export REDMINE_NO_UPDATE_CHECK=1

See Self-Update for details on the update check.

Flags take precedence over config values and environment variables.

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

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