Skip to content

CLI Reference ​

The uchroma command-line interface provides full control over Razer Chroma devices from your terminal.

Installation ​

The CLI is included with uchroma. After installing uchroma, the uchroma command is available system-wide.

bash
# Verify installation
uchroma --help

Usage Pattern ​

uchroma [global options] <command> [command options]

Global Options ​

OptionShortDescription
--help-hShow help message and exit
--device <SPEC>-dSelect a specific device by index, key, serial, or D-Bus path

Device Selection ​

When multiple devices are connected, use -d to target a specific one:

bash
# By index (shown in `uchroma list`)
uchroma -d 0 brightness 80

# By device key
uchroma -d blackwidow_v3 fx spectrum

# By serial number
uchroma -d XX1234567890 brightness 100

# By D-Bus path
uchroma -d /io/uchroma/device/0 fx static --color red

If only one device is connected, it is selected automatically.

Command Categories ​

Device Information ​

CommandAliasesDescription
listls, devicesList connected devices
dumpdebug, infoShow detailed device and system info

Lighting Control ​

CommandAliasesDescription
brightnessbright, brGet or set device brightness
fxeffectApply hardware lighting effects
led-Control standalone LEDs (logo, scroll wheel)
matrixpixels, frameLED matrix information and direct control

Animation System ​

CommandAliasesDescription
animanimation, layerManage custom animation layers
inputreact, reactiveConfigure reactive key effects

Device Management ​

CommandAliasesDescription
profilepreset, profSave and load device presets
powerfan, boostSystem control for laptops
batterybat, wirelessBattery status for wireless devices
watchmonitor, liveLive monitoring of device status

Quick Examples ​

bash
# List all connected devices
uchroma list

# Set brightness to 75%
uchroma brightness 75

# Apply a spectrum cycling effect
uchroma fx spectrum

# Apply static color
uchroma fx static --color "#ff0088"

# Add a plasma animation layer
uchroma anim add plasma

# Save current settings as a profile
uchroma profile save gaming

# Monitor fan speed in real-time (laptops)
uchroma watch --fan

Exit Codes ​

CodeMeaning
0Success
1Error (device not found, invalid arguments, operation failed)

Environment Variables ​

VariableDescription
UCHROMA_LOG_LEVELSet logging verbosity (DEBUG, INFO, WARNING, ERROR)
NO_COLORDisable colored output when set

See Also ​

Released under the LGPL-3.0 License.