@office-lunch/cli
v0.1.2
Published
CLI for Office Lunch Management
Readme
OfficeLunch.app CLI (olm)
A command-line interface for Office Lunch — the tool that helps teams coordinate lunch orders, track opt-ins, and manage restaurants across multiple organizations.
Use olm to opt in, place orders, vote on restaurants, and run admin tasks directly from your terminal.
Installation
npm install -g @office-lunch/cliVerify it worked:
olm --versionQuick start
Generate an API token — sign in at officelunch.app, go to Settings → API Tokens, and create a token.
Run setup:
olm configureYou'll be prompted for your server URL and API token. These are saved locally and reused across sessions.
- Check your status:
olm statusThat's it — you're ready to use olm.
Commands
Opt-in / Opt-out
olm status # Check today's opt-in status
olm status --date 2026-04-18 # Check a specific date
olm opt-in # Opt in for today
olm opt-in --date 2026-04-18 # Opt in for a specific date
olm opt-out # Opt out for todayOrders
olm order list # List your current orders
olm order set <restaurant-id> "my order details" # Create or update an order
olm order delete <restaurant-id> # Remove an orderRestaurants
olm restaurants list # List all restaurants
olm restaurants add "Chipotle" "https://chipotle.com" --budget 2
olm restaurants update <id> --name "New Name" --budget 3
olm restaurants delete <id>Suggest a restaurant
olm suggest "Shake Shack" "https://shakeshack.com" --notes "Great burgers"Vote
olm vote up <restaurant-id> # Upvote
olm vote down <restaurant-id> # Downvote
olm vote remove <restaurant-id> # Remove your voteProfile
olm profile update --dietary-preferences "vegetarian" --allergy-notes "no nuts"API tokens
olm tokens list
olm tokens create "My Script" --expires-in-days 90
olm tokens delete <id>Admin commands
Requires admin or owner role in your organization.
olm admin orders <restaurant-id> # View all orders for a restaurant
olm admin opt-ins # Opted-in users for today
olm admin opt-ins --date 2026-04-18 --list not-responded # Filter by status
olm admin opt-user <user-id> in # Opt a user in
olm admin opt-user <user-id> out --date 2026-04-18
olm admin users # List all users
olm admin suggestions list # Pending restaurant suggestions
olm admin suggestions approve <id> --notes "Added it!"
olm admin suggestions reject <id> --notes "Out of budget"
olm admin lunch show # Vote tallies + current selection
olm admin lunch set <restaurant-id>
olm admin lunch clearConfiguration
olm configure # Interactive setup
olm configure set-token <token>
olm configure set-url https://your-instance.com
olm configure show # Print current config (token masked)Links
- officelunch.app — hosted version
- GitHub — source code & issue tracker
