Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI reference

quitlock --help and quitlock <command> --help give the full options of each command; this page is the overview.

Setting up

CommandWhat it does
quitlock setupSet up a phone step by step: your key, the phone, the app and a first config
quitlock setup --udevLinux: show, and offer to install, the udev rule the USB accessory needs
quitlock provision --checkWhat stops this phone being set up; changes nothing
quitlock provision <apk> or --github [--tag <tag>]Clear what blocks setup (asking first), install the app, make it device owner, enrol your key; --config <file> enrols those settings instead of the defaults
quitlock enrol [--config <file>]Enrol your key and settings on a new phone, or pair a new key after Pair a new key on the phone. On a phone your key is already enrolled on, --config sends the settings as a config change

Keys

CommandWhat it does
quitlock key new <name>Create a key, locked by a PIN or password; shows its recovery phrase once
quitlock key restore <name>Rebuild a key from its 24-word recovery phrase
quitlock key phrase <name>Show a key’s recovery phrase again
quitlock key listKeys with public keys and fingerprints
quitlock key export <name> <file>Copy the encrypted key file out, for backup
quitlock key import <name> <file>Copy an encrypted key file in
quitlock key add --owner <name or hex>Enrol another owner key on the phone
quitlock key remove --owner <name or hex>Remove an owner key from the phone

Looking at the phone

CommandWhat it does
quitlock statusState, mode, countdown and self-check result
quitlock dashA live view: overview, history, config. q quits
quitlock log pull [--out <file>]The phone’s history of changes, with its hash chain checked
quitlock log verify <file>Check a saved history (from log pull --out, or saved on the phone)
quitlock config editOpen the phone’s config in your editor; send what you changed
quitlock config pull [file]Fetch the config the phone is using (replaces an existing file after asking)

Changing things

CommandWhat it does
quitlock config init [file]Write a config file with the defaults, to edit
quitlock config validate [file]Check a config file, show what it says, and check its DNS filter host answers
quitlock config push <file>Show what would change, sign it, send it
quitlock update <apk> or --github [--tag <tag>]Sign and send a new version of the app
quitlock exit requestRemove QuitLock, after the delay
quitlock send <bundle>Send an already signed bundle
quitlock inspect <bundle>Show what a bundle would change, in plain words

Partners and phone secrets

CommandWhat it does
quitlock partner inviteOwner: write an invite file for a partner far away
quitlock partner join [<invite>]Partner: make your key and join, in person or from an invite
quitlock partner accept <reply>Owner: enrol a remote partner from their reply
quitlock partner reviewPartner, with the phone: approve the change waiting on it
quitlock partner sign <bundle>Partner, far away: check a change and approve it
quitlock partner removeOwner: remove the partner (needs both of you)
quitlock phone-secret allow [--partner]Replace a forgotten phone PIN or password

Options most commands take

OptionMeaning
--key <name>Which of your keys to use; the default is your only key, and a terminal offers a menu when there are several
--transport auto|usb|adbHow to reach the phone; auto uses adb when the phone has it on, otherwise the USB accessory (Linux)
--adb <path>The adb program, if not on your path
--to-file <path>, --out <path>Write the signed bundle to a file instead of sending it
--draftSend it unsigned, to be approved on the phone with your phone PIN or password
-y, --yesDo not ask “Send it?” before a loosening change
--key-dir <dir>Where key files are kept

Environment

VariableMeaning
QUITLOCK_KEY_DIRWhere key files are kept
QUITLOCK_PASSPHRASEThe key’s PIN or password, for scripts and tests
NO_COLORSet to turn colour off
GH_TOKEN, GITHUB_TOKENFor --github against a private repository