lm
๐กโ Control your La Marzocco espresso machine from the command line
Features
With this tool, you can:
- Turn your machine on
- Switch your machine back into standby
- Monitor the status of your machine
Installation
macOS or Linux via Homebrew
- Install the latest version by running
brew tap timrogers/tap && brew install lm. - Run
lm --helpto check that everything is working and see the available commands.
macOS, Linux or Windows via Cargo, Rust's package manager
- Install Rust on your machine, if it isn't already installed.
- Install the
lmcrate by runningcargo install lm-rs. - Run
lm --helpto check that everything is working and see the available commands.
macOS, Linux or Windows via direct binary download
- Download the latest release for your platform. macOS, Linux and Windows devices are supported.
- Add the binary to
$PATH, so you can execute it from your shell. For the best experience, call itlmon macOS and Linux, andlm.exeon Windows. - Run
lm --helpto check that everything is working and see the available commands.
Usage
From the command line
Logging in to your La Marzocco account
The recommended way to use the CLI is with the persistent login system:
-
Login once and store credentials (recommended):
# You'll be prompted for username and password # Credentials are securely stored in ~/.lm.yml # Now you can use any command without providing credentials againYou can also provide credentials directly to the login command:
-
Logout to clear stored credentials:
-
Alternative: Command line arguments (not recommended):
-
Alternative: Environment variables:
Note: The CLI will automatically refresh access tokens as needed. If stored credentials become invalid, you'll be prompted to run lm login again.
Viewing the status of your machine(s)
You'll see all of the machines connected to your account, with their status:
Model Name Location Serial Status
----------------------------------------------------------------------------------------------------
GS3 AV Kitchen Machine Home GS01234 On
Linea Mini Office Espresso Work LM56789 Standby
GS3 MP Garage Machine Garage GS98765 Unavailable
Turning on a machine
# Turn your one and only machine on
# Turn your machine on, wait until the coffee boiler is ready to go, then exit and trigger a notification
# Turn on a specific machine, specified by serial number
Turning off a machine (standby mode)
# Switch your one and only machine into standby
# Switch a specific machine into standby mode, specified by serial number
From a Rust application
The lm-rs crate includes functions for interacting with La Marzocco espresso machines from your Rust applications.
To see the full API, check out the documentation on Docs.rs or read through src/lib.rs.