Skip to content

CLI commands

For installed command help, run tinytouch COMMAND --help.

Global options

text
tinytouch [--verbose] COMMAND
tinytouch --version
tinytouch --help
OptionDescription
-h, --helpShow help
--verbosePrint subprocess, serial, and device-response diagnostics
--versionPrint the installed CLI version and exit

Global options must precede the command:

sh
tinytouch --verbose status

Most commands accept --port PATH. Without it, the CLI finds or prompts for a device.

setup

text
tinytouch setup [--mode {hid,piv}] [--port PATH] [--skip-enroll] [--no-pair]

Checks the device, enrolls a fingerprint, and configures PIV or HID.

--skip-enroll keeps current templates. --no-pair applies only to PIV and leaves the identity unpaired on macOS.

mode

text
tinytouch mode {hid,piv} [--port PATH]

Changes mode after fingerprint approval. Reconnect the device when prompted.

status

text
tinytouch status [--port PATH]

Prints JSON containing:

FieldMeaning
protocolHost/device protocol; the current CLI requires 6
firmwareFirmware semantic version
buildFirst 12 characters of the source commit, or development
modepiv or hid
pivready or unconfigured
sensorready or offline after a live UART probe
fingerprintsNumber of occupied sensor slots
hostsNumber of registered HID computers
otaidle, writing, or staged

test

text
tinytouch test [--port PATH]

Checks serial communication and device status.

logs

text
tinytouch logs [--port PATH]

Prints up to 32 recent touch and HID events.

enroll

text
tinytouch enroll SLOT [--port PATH]

Enrolls slot 1 through 5. Existing templates require fingerprint approval.

Examples:

sh
tinytouch enroll 5
tinytouch enroll 3 --port /dev/cu.usbmodem101

Setup uses slots 1–4.

delete

text
tinytouch delete SLOT [--port PATH]

Deletes slot 1 through 5 after fingerprint approval. To delete all state, use factory-reset.

computers

text
tinytouch computers [list] [--port PATH]
tinytouch computers remove HOST_ID [--port PATH]

Lists or removes up to eight HID hosts. Removing the final host selects PIV mode. To add a host, run HID setup on that Mac.

keys

text
tinytouch keys [--port PATH]

Creates a PIV identity after fingerprint approval.

pair

text
tinytouch pair [--port PATH]

Pairs the PIV identity with the current macOS user. Requires administrator and fingerprint approval.

update

text
tinytouch update [--port PATH]

Updates the CLI, HID helper, and firmware. Reconnect the device after staging.

factory-reset

text
tinytouch factory-reset [--port PATH]

Removes fingerprints, keys, hosts, settings, local HID credentials, and PIV pairing. Requires confirmation and a fingerprint.

rom / bootloader

text
tinytouch rom [--port PATH]
tinytouch bootloader [--port PATH]

Prints ROM-mode instructions. Flash with the Flash center or ESP-IDF.

config

text
tinytouch config NAME [VALUE] [--port PATH]

Without a value, prints status. With a value, writes a protected setting:

NameRangeDefaultEffect
typing_delay_ms1–1007Delay after HID key press and release
submit_enter0 or 11Type Enter after the HID password
touch_cooldown_ms100–5000800Minimum interval between touch actions

STATUS doesn't return these values. A successful write can still report a verification error.

Developer commands

CommandAction
tinytouch hid-smokeTest HID setup against a simulated device on macOS
tinytouch enroll-demoPreview enrollment in an interactive terminal