Skip to content

Other Commands

A grab-bag of utility commands that don’t fit the main resource families.

Make authenticated requests to any Redmine REST API endpoint.

Terminal window
redmine api /users/current.json
redmine api /issues.json -f project_id=myproject -f limit=5
FlagDescription
-X, --methodHTTP method (default: GET, or POST when a body is provided)
-f, --fieldQuery parameter as key=value (repeatable)
-F, --raw-fieldJSON body field as key=value (repeatable)
--inputRead request body from file (- for stdin)
-i, --includeShow response status line and headers
--silentSuppress response output
Terminal window
redmine categories list --project <identifier>

Lists issue categories for a project.

Terminal window
redmine trackers list
redmine trackers get Bug

Lists all available trackers. The list view includes the default status for each tracker, and trackers get shows richer metadata such as enabled standard fields when the Redmine server exposes them.

Terminal window
redmine statuses list

Lists all issue statuses.

Terminal window
redmine custom-fields list
redmine custom-fields get "Severity"
redmine custom-fields get 7 --output json

Lists or inspects custom field definitions. The list view surfaces target resource type, field format, and the required/filter/searchable/multiple flags. custom-fields get adds the default value, length and regexp constraints, possible values for list fields, plus the trackers and roles a field is restricted to.

Terminal window
redmine completion bash > /etc/bash_completion.d/redmine
checksum verified
Terminal window
redmine update

Checks GitHub for the latest release, downloads it with SHA256 checksum verification, and replaces the current binary. When installed via Homebrew, delegates to brew upgrade.

On every invocation, redmine checks GitHub for a newer release in the background. When one is available, a notice is printed to stderr after the command output:

A new version of redmine is available: v1.2.0 → v1.3.0
https://github.com/aarondpn/redmine-cli/releases/tag/v1.3.0
Run "redmine update" to upgrade

The check runs in a goroutine with a 3-second timeout, so it never delays the CLI. It is automatically skipped when:

  • the command is redmine update itself;
  • stderr is not a TTY (piped output, CI);
  • REDMINE_NO_UPDATE_CHECK is 1 or true.

To disable permanently:

Terminal window
export REDMINE_NO_UPDATE_CHECK=1