| Crates.io | lm-rs |
| lib.rs | lm-rs |
| version | 0.2.2 |
| created_at | 2025-06-04 10:17:30.097417+00 |
| updated_at | 2025-09-22 10:09:56.968345+00 |
| description | Control your La Marzocco espresso machine from the command line or a Rust application |
| homepage | https://github.com/timrogers/lm |
| repository | https://github.com/timrogers/lm |
| max_upload_size | |
| id | 1700078 |
| size | 246,184 |
๐กโ Control your La Marzocco espresso machine from the command line
With this tool, you can:
brew tap timrogers/tap && brew install lm.lm --help to check that everything is working and see the available commands.lm crate by running cargo install lm-rs.lm --help to check that everything is working and see the available commands.$PATH, so you can execute it from your shell. For the best experience, call it lm on macOS and Linux, and lm.exe on Windows.lm --help to check that everything is working and see the available commands.The recommended way to use the CLI is with the persistent login system:
Login once and store credentials (recommended):
lm login
# You'll be prompted for username and password
# Credentials are securely stored in ~/.lm.yml
# Now you can use any command without providing credentials again
lm machines
lm on
lm off
You can also provide credentials directly to the login command:
lm login --username your@email.com --password yourpassword
Logout to clear stored credentials:
lm logout
Alternative: Command line arguments (not recommended):
lm --username your@email.com --password yourpassword machines
Alternative: Environment variables:
export LM_USERNAME="your@email.com"
export LM_PASSWORD="yourpassword"
lm machines
Note: The CLI will automatically refresh access tokens as needed. If stored credentials become invalid, you'll be prompted to run lm login again.
lm machines
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
# Turn your one and only machine on
lm on
# Turn your machine on, wait until the coffee boiler is ready to go, then exit and trigger a notification
lm on --wait
# Turn on a specific machine, specified by serial number
lm on --serial ABC123
# Switch your one and only machine into standby
lm off
# Switch a specific machine into standby mode, specified by serial number
lm off --serial ABC123
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.