Skip to content

CLI Commands ​

blocksd ships a Typer-based CLI for running the daemon, controlling LEDs, managing device configuration, and setting up system integration.

blocksd run ​

Start the daemon in the foreground.

bash
blocksd run                  # start with defaults
blocksd run -v               # verbose logging (protocol-level debug output)
blocksd run --config my.toml # explicit config file

The daemon scans for ROLI devices, activates API mode, and maintains keepalive pings. It runs until interrupted with Ctrl+C or a SIGTERM signal.

When running under systemd, the daemon sends READY=1 via sd_notify and periodic watchdog heartbeats.

FlagShortDescription
--verbose-vEnable debug logging
--foreground / --daemon-f / -dAccepted for compatibility; both run in foreground
--configPath to TOML config file

blocksd ui ​

Open the running daemon's dashboard. Start the service or blocksd run first.

bash
blocksd ui                       # open the existing dashboard
blocksd ui --no-browser          # print its URL
blocksd --socket /path/to/blocksd.sock ui

The daemon reports its configured dashboard address. Set web_host and web_port in the daemon configuration; the UI command does not change them or start another daemon.

blocksd status ​

Read device information from the running daemon without opening MIDI ports.

bash
blocksd status                  # device, serial, battery, firmware
blocksd status --probe          # include DNA connection count

Use the global --socket PATH option before the command to connect to a custom socket. Otherwise the client reads api_socket from the normal configuration locations, then uses the platform default.

blocksd led ​

Control Lightpad grids and LUMI key colors. These commands send a frame through the running daemon and wait for renderer readiness before exiting. Use --device SERIAL to select one device; otherwise lighting commands target every connected device with the requested surface. The first frame loads a LittleFoot renderer; pixel delivery waits for upload acknowledgement and a matching execution challenge reply (see LittleFoot). Readiness establishes a responding renderer, not visible output. A missing acknowledgement or reply produces an error with a blocksd program status command for diagnosis.

Lighting is rejected while a custom program is loaded or being compiled. Use blocksd program reset --device SERIAL to restore the saved device program before sending lighting frames.

blocksd led solid ​

Fill the entire grid with a single color.

bash
blocksd led solid '#ff00ff'          # hex color (quote the hash for shell)
blocksd led solid ff00ff             # hash is optional

blocksd led rainbow ​

Generate a static rainbow gradient across the grid.

bash
blocksd led rainbow
blocksd led rainbow --brightness 0.5 # dimmer rainbow (0.0-1.0)

blocksd led gradient ​

Draw a two-color gradient.

bash
blocksd led gradient ff0000 0000ff               # horizontal (left → right)
blocksd led gradient ff0000 0000ff --vertical    # vertical (top → bottom)

blocksd led checkerboard ​

Draw a checkerboard pattern.

bash
blocksd led checkerboard ff0000 00ff00             # 1x1 squares (default)
blocksd led checkerboard ff0000 00ff00 --size 3    # 3x3 squares
blocksd led checkerboard ff0000 00ff00 --size 5    # 5x5 squares

blocksd led off ​

Turn off the Lightpad grid (fill with black).

bash
blocksd led off

blocksd led keys ​

Set all 24 LUMI key colors to a rainbow or a single hex color. Requires LUMI firmware 1.3.0 or newer; visible rendering has been verified on 1.3.9. The renderer retains the default musical key handler. Live MIDI/MPE preservation during lighting still needs a dedicated acceptance check.

bash
blocksd led keys
blocksd led keys rainbow
blocksd led keys '#ff00ff'
blocksd led keys 000000              # key lights off

blocksd program ​

load temporary LittleFoot applications through the running daemon, inspect upload state, or request the device's saved program. use --device SERIAL when more than one device is connected. find serials with blocksd status.

blocksd program load FILE ​

compile a .littlefoot source file and replace the active program on the selected device:

bash
blocksd program load Seqoli.littlefoot --device SERIAL
blocksd program load MyProgram.littlefoot --device SERIAL --include Helpers.littlefoot

the CLI collects referenced local includes inside the source file's directory, including subdirectories. repeat --include FILE to supply extra files by basename. conflicting duplicate names are rejected, and the combined source bundle must fit the 256 KiB limit. the standard LittleFoot library is bundled.

the command waits for upload acknowledgement. acknowledgement confirms transfer only; it does not verify application execution or musical output. compilation or validation failure leaves the previous program intact. loading does not save a startup default.

Dashboard metadata supports declared int, float, bool, and midiNote defaults only. live metadata editing and other types are not supported. error line numbers refer to the expanded source, including includes and generated metadata defaults. see the LittleFoot programs guide for source preparation and device-memory limits.

blocksd program status ​

print the selected device's program name, state, and diagnostic message:

bash
blocksd program status --device SERIAL

custom programs report uploaded after complete upload acknowledgement. lighting renderers report ready after answering their execution challenge. unresponsive can mean an incomplete upload or a missing renderer reply; read the message to distinguish them. status reporting does not stop retransmission or readiness checks.

blocksd program reset ​

request the device's saved program and clear blocksd's temporary program ownership:

bash
blocksd program reset --device SERIAL

the command sends the SDK's end/begin API-mode sequence. success confirms that the request was sent, not that the saved program has been observed running. it is not a factory reset and does not restore an earlier temporary upload.

blocksd config ​

Read reported configuration through the running daemon. Writes validate the device-reported range and wait for matching readback before reporting confirmation. A timeout or disconnect is an error, not a successful save. If multiple devices are connected, specify --device SERIAL; configuration commands never silently write to every device.

blocksd config list ​

Show all known configuration item IDs and their descriptions.

bash
blocksd config list

The list follows the system IDs in the ROLI BLOCKS SDK. An ID in this list does not establish that your device or its current program supports it. Use device-reported values and ranges.

Earlier versions mislabeled several IDs. Update scripts that imported the Python enum or selected numeric IDs from the old list:

SettingCorrect IDEarlier mapping
Glide sensitivity1112
Slide sensitivity1211
MIDI mode (midi_use_mpe)2midi_channel_mode labeled ID 7, which is slide mode
Mode20Labeled grid_size
Chord24Labeled colour_preset
MPE zone4030, which is X tracking mode
MIDI start channel0mpe_channel_start labeled ID 31, which is Y tracking mode
MIDI end channel1mpe_channel_end labeled ID 32, which is Z tracking mode

The incorrect enum names were removed. Numeric config requests still send the supplied ID unchanged. Global key color, root key color, and hardware brightness use IDs 34, 35, and 36. The SDK describes hardware brightness on a 0 to 100 scale; the daemon's frame brightness control uses 0 to 255 and is a separate setting.

blocksd config get <id> ​

Read a configuration value from the device.

bash
blocksd config get 10            # read velocity sensitivity

blocksd config set <id> <value> ​

Write a configuration value to the device.

bash
blocksd config set 10 50 --device LKB1234567890AB
blocksd config set --device LKB1234567890AB 4 -- -1  # negative octave

blocksd install ​

Set up a systemd user service and udev rules on Linux, or a per-user LaunchAgent on macOS. Only Linux udev installation requires sudo. macOS service registration requires a GUI login session.

bash
blocksd install                  # native service + auto-start, plus Linux udev rules
blocksd install --no-udev        # skip udev rules
blocksd install --no-enable      # write service without enabling or restarting
blocksd install --no-service     # skip background service setup entirely

The Linux installer creates:

FilePurpose
/etc/udev/rules.d/99-roli-blocks.rulesUSB device permissions for your user
~/.config/systemd/user/blocksd.servicesystemd user service with watchdog

The macOS installer creates ~/Library/LaunchAgents/tech.hyperbliss.blocksd.plist and writes logs under ~/Library/Logs/blocksd/. Repeated installation replaces the loaded service definition and starts the new executable. With --no-enable, macOS only writes the definition; Linux also reloads systemd. See macOS installation for stop, start, and status commands.

blocksd uninstall ​

Remove the native background service and, on Linux, udev rules. The Python package, user configuration, and macOS logs remain; remove a uv tool installation separately with uv tool uninstall blocksd.

bash
blocksd uninstall

Released under the ISC License.