API reference | LabBench CLI reference | MCP reference | Guide: set up a lab

labbench

Drive LabBench from the terminal

Usage

labbench

Global flags

FlagTypeDefaultDescription
--configstringconfig file (default: the user config dir's labbench/config.yaml)
--labstringlab id to use; defaults to LABBENCH_LAB, then the config file
--output, -ostringtableoutput format: table or json
--serverstringLabBench URL (the admin's address); defaults to LABBENCH_SERVER, then the config file
--tokenstringAPI token (lbt_...), used instead of the signed-in session; prefer LABBENCH_TOKEN, since a flag shows in ps and shell history

Commands

labbench billingThe lab's subscription (lab managers only)
labbench categoriesThe lab's item categories
labbench checkoutsTake stock and return it
labbench itemsWhat the lab has on hand
labbench joinJoin a lab with your invite link, setting your kiosk PIN
labbench kiosksManage paired kiosks
labbench labLabs
labbench locationsFreezers, fridges, shelves and other storage
labbench logRead bounded lab activity evidence
labbench loginSign in, or store an API token with --token
labbench lotsReceive and correct delivered lots
labbench materialsMaterials the lab holds, with their lots and default stock
labbench mcpServe the CLI's commands as MCP tools over stdio
labbench membersLab members
labbench organizationsYour organizations
labbench outflowsStock that was used up
labbench policy-acceptancesYour recorded Terms and Privacy Policy acceptances
labbench reconciliationCheckouts still to reconcile
labbench reportsRead inventory reports
labbench setupOptional first-time lab setup
labbench shipmentsRead received shipments and what of them waits to be put away
labbench studiesStudies managed by this lab
labbench tokensList and revoke your API tokens (needs a signed-in session)
labbench whoamiShow the signed-in account, its lab and role