Configuration
Interactive Setup
Section titled “Interactive Setup”The easiest way to configure redmine-cli is the interactive wizard:
redmine initThis walks you through setting your server URL, authentication method, and optionally selecting a default project. Configuration is saved to ~/.redmine-cli.yaml.
Configuration File
Section titled “Configuration File”The config file (~/.redmine-cli.yaml) supports the following settings:
server: https://redmine.example.comauth_method: apikey # "apikey" or "basic"api_key: your-api-keyusername: "" # for basic authpassword: "" # for basic authdefault_project: myproject # optionaloutput_format: table # table, wide, json, csvno_color: falsepage_size: 25Environment Variables
Section titled “Environment Variables”All settings can be overridden with environment variables prefixed with REDMINE_:
export REDMINE_SERVER=https://redmine.example.comexport REDMINE_API_KEY=your-api-keyexport REDMINE_AUTH_METHOD=apikeyGlobal Flags
Section titled “Global Flags”These flags can be used with any command to override config values:
| Flag | Description |
|---|---|
-s, --server | Redmine server URL |
-k, --api-key | API key for authentication |
--config | Config file path (default ~/.redmine-cli.yaml) |
--no-color | Disable colored output |
-v, --verbose | Enable debug logging |
View Current Configuration
Section titled “View Current Configuration”redmine configDisplays the active server, auth method, default project, and output format.