logo
1
1
Login

oh-my-rime-cli

A command-line tool for automatic update and management of Rime Oh-my-rime configuration, supporting Windows, Linux, and macOS.

Usage Demo

Features

  • One-click download and update of Rime main scheme, model, and dictionaries
  • Auto-detect operating system and select configuration directory intelligently
  • Windows: automatically locate Rime user directory via registry
  • Interactive and user-friendly menu (supports both CLI version and GUI interface), supports multiple input method environments

Dependencies

  • Go 1.24 or above
  • On Windows, requires golang.org/x/sys/windows/registry package

Download & Installation

Pre-compiled Version Download

You can download pre-compiled versions from the Releases page:

  • GUI Version:

    • macOS: Download .dmg file
    • Windows: Download .exe installer
  • CLI Version:

    • Windows: Download oh-my-rime-cli-windows.exe
    • Linux: Download oh-my-rime-cli-linux
    • macOS: Download oh-my-rime-cli-darwin

Security Notice

⚠️ Important Reminder: Since the project is not code-signed, Windows Defender and other antivirus software may falsely report it as a virus. For example, macOS may show an error when opening the DMG:

macOS DMG Opening Error

You need to allow it in Security & Privacy settings, and then opening the App may require another permission:

macOS App Opening Error

This is a common issue with Go-compiled programs. Please:

  • Ensure you download from the official GitHub Releases page
  • Add to trust/whitelist in your antivirus software
  • Or choose to compile the source code yourself

Usage

1. Build

Windows

Build directly on Windows:

# Recommended to run in Windows command line cd oh-my-rime-cli go build -o oh-my-rime-cli.exe .

macOS/Linux

Build on macOS or Linux:

cd oh-my-rime-cli go build -o oh-my-rime-cli .

Cross-compile for Windows

Build Windows executable on macOS/Linux:

GOOS=windows GOARCH=amd64 go build -o oh-my-rime-cli.exe .

2. Run

Double-click or run the compiled program in the command line, and follow the prompts to select actions and configuration directory.

Partial Logic

Windows Registry Support

  • On Windows, automatically reads the RimeUserDir value from HKEY_CURRENT_USER\Software\Rime\Weasel registry
  • If the registry key does not exist or fails to read, automatically falls back to %APPDATA%\Rime directory

Contribution & License

  • MIT License
  • Issues and PRs are welcome

Support

About

oh-my-rime-cli 是一个用于 Rime 输入法更新和管理薄荷配置的命令行工具,支持多平台(Windows、macOS、Linux)🖥️,方便用户快速操作和定制 Rime 输入法环境✨

11.73 MiB
1 forks1 stars2 branches5 TagREADMEMIT license
Language
Go63%
Shell23%
Markdown9.7%
XML1.4%
Others2.9%