Skip to main content

Redmine CLI tool

Project description

redi

redmine CLI tool

install

Install via uv

uv tool install https://github.com/kawagh/redi.git

install(for development)

In repository root

uv tool install -e .

setup

config

To use redi, you need to set remdine url and redmine_api_key in one of below ways.

environment variable

export REDMINE_URL=xxx
export REDMINE_API_KEY=yyy

~/.config/redi/config.toml

default_profile = "main"

["main"]
redmine_url = "xxx"
redmine_api_key = "yyy"
default_project_id = "1"
wiki_project_id = "2"
editor = "nvim"

["sub"]
redmine_url = "vvv"
redmine_api_key = "www"
default_project_id = "2"
wiki_project_id = "3"
editor = "code"

setup completion

uv tool install argcomplete
echo 'eval "$(register-python-argcomplete redi)"' >> ~/.zshrc

usage(example)

# config (alias: c)
redi config
redi config create <profile_name> --url <url> --api_key <key> # create new profile
redi config create <profile_name> --url <url> --api_key <key> --set_default
redi config update --default_profile <profile_name> # switch profile
redi config update <profile_name> --editor nvim # update profile
redi --profile <profile_name> issue # 一時的にプロファイルを切り替えて実行

# project (alias: p)
redi project # list projects
redi project list # 同上 (`redi project l` / `redi p list` / `redi p l` / `redi p` も同じ)
redi project view <project_id> # view project
redi project view <project_id> --include trackers,issue_categories
redi project create <name> <identifier>
redi project create <name> <identifier> -d "description" --is_public true
redi project update <project_id> --name renamed_project

# issue (alias: i)
redi issue # list issues
redi issue -p <project_id> -a me -s open
redi issue -q <query_id>
redi issue view <issue_id>
redi issue view <issue_id> --web # view issue with web browser
redi issue view <issue_id> --include journals,attachments,relations
redi issue create # (interactive)
redi issue create "subject" -p <project_id> -t <tracker_id> -a <user_id> -d "description"
redi issue update <issue_id> # (interactive)
redi issue update <issue_id> --status_id <status_id> -n "notes"
redi issue update <issue_id> --relate relates --to <other_issue_id>
redi issue update <issue_id> --attach ./foo.png --attach ./bar.log
redi issue comment <issue_id> "hello~"
redi issue delete <issue_id> # (confirm before delete)
redi issue delete <issue_id> -y # skip confirmation

# version (alias: v)
redi version # list versions(fixed_versions)
redi version -p <project_id>
redi version view <version_id>
redi version create <name> -p <project_id> --due_date 2026-12-31 --status open
redi version update <version_id> --status closed

# wiki (alias: w)
redi wiki
redi wiki -p <project_id>
redi wiki view <page_title>
redi wiki create # (interactive)
redi wiki update # (interactive)

# file (プロジェクトファイル)
redi file -p <project_id> # list
redi file create ./foo.zip -p <project_id> -d "description"

# attachment
redi attachment view <attachment_id>
redi attachment update <attachment_id> -f new_name.png -d "desc"
redi attachment delete <attachment_id> # confirm before delete (-y to skip)

# relation (イシュー関係性詳細)
redi relation view <relation_id>

# time_entry (作業時間)
redi time_entry -p <project_id> -u me
redi time_entry create 1.5 -i <issue_id> -a <activity_id> -c "comment"
redi time_entry update <time_entry_id> --hours 2.0
redi time_entry delete <time_entry_id> # confirm before delete (-y to skip)

# me (自分のアカウント)
redi me
redi me update -f <firstname> -l <lastname> -m <mail>

# membership (alias: m)
redi membership -p <project_id>
redi membership view <membership_id>

# news
redi news -p <project_id>

# issue_category
redi issue_category -p <project_id>
redi issue_category create "category" -p <project_id>

# others
redi user # list users (alias: u)
redi tracker # list trackers
redi issue_status # list issue statuses
redi issue_priority # list priorities
redi time_entry_activity # list activities
redi document_category # list document categories
redi role # list roles
redi group # list groups
redi custom_field # list custom fields
redi query # list custom queries
redi search "keyword"
redi --version
redi --tui

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redtile-0.0.17.tar.gz (40.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redtile-0.0.17-py3-none-any.whl (68.2 kB view details)

Uploaded Python 3

File details

Details for the file redtile-0.0.17.tar.gz.

File metadata

  • Download URL: redtile-0.0.17.tar.gz
  • Upload date:
  • Size: 40.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for redtile-0.0.17.tar.gz
Algorithm Hash digest
SHA256 6ea2fc67e6c8e792b7fd35bb3860bb2cc0c88f5b246f7960f25b9838b9dc8271
MD5 53512e684378e062cf3ea5deef1b2673
BLAKE2b-256 1f1248053c59bac7481760f4514c57e1d95c5405c213535ad9cbc733b6c8c02f

See more details on using hashes here.

File details

Details for the file redtile-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: redtile-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 68.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for redtile-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 acdfe8bbf12e9a3e81d30d463c9651f4d059d413e95d5fb162b17c8746eea6f1
MD5 d14abc8afc362e641474d342ab9d9149
BLAKE2b-256 d465246cce23e3b37da430e884ebe2422673d1cc4fe732b66d76798b62cc8be7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page