CookCLI
Recipe Management CLI + embedded web-server in one binary
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Overview
CookCLI is a command-line tool in the Cooklang ecosystem. The official tagline is "manage your recipe folder from the terminal." Cooklang is a markup language for writing recipes, and recipes are stored as plain-text .cook files. Following the UNIX philosophy, CookCLI handles these files with a set of small commands that work well together, covering shopping lists, a local web server, search, reports, and static site generation. It is free and open source, and runs on macOS, Linux, and Windows.
Key Features
- Shopping lists (
cook sl): Combines the ingredients from multiple recipes or an entire menu (such asWeekly Plan.menu) into a single list, grouped by supermarket aisle, and subtracts what you already have in your pantry. - Local web server (
cook server): Turns your recipe folder into a web app accessible on your local network with a single command (defaultlocalhost:9080). In the browser you can browse and search recipes, scale them by servings, generate shopping lists, plan with menus, and manage your pantry. The server also provides an HTTP API for integrations. - Search (
cook search): Finds recipes by any word in the ingredients, steps, or title. - Import (
cook import <url>): Converts recipes from websites into clean.cookfiles. - Static site (
cook build web): Publishes your recipe collection as a searchable static website that can be deployed to GitHub Pages or Netlify. - Reports (
cook report): Renders recipes or menus with Jinja templates to produce costs, nutrition information, printable cards, and more. - Pantry (
cook pantry): Shows ingredients that are running low or about to expire, and which dishes you can make with what you have. - Checks (
cook doctor): Checks recipes for errors and finds ingredients missing from the aisle file and the pantry file. - Editor support (
cook lsp): Provides a language server for completion and diagnostics in editors such as VS Code and Neovim. - Other commands:
recipe(parse, validate, and display recipes),seed(initialize with sample recipes),update(self-update), andcompletions(generate shell completion scripts).
Sync
Run cook login to sign in to the Cook Cloud sync service (Cook Basic). While cook server is running, your recipe folder stays in sync with the Cook mobile app and Cook Editor. Run cook logout to sign out.
Target Users
- People who like to manage their personal recipes with plain text and Git
- Developers and geeks who are comfortable with the command line and want composable tools
- People who want to self-host a recipe library on their home network or a Raspberry Pi
- Families who plan menus weekly and want shopping lists generated automatically
Core Strengths
- Your data is just plain text files that you can edit with any editor, and they are easy to version-control and migrate, so there is no platform lock-in.
- The commands are small and composable, which makes scripting and automation easy.
- The same set of recipe files works across the command line, the web interface, static sites, and mobile apps.
- The HTTP API and LSP make it easy to extend and integrate.
Installation and Deployment
- On macOS / Linux, install with Homebrew:
brew install cookcli - You can also download prebuilt binaries from GitHub Releases, install the RPM package, or install via
cargo install. - Start the server and allow LAN access:
cook server ~/recipes --host - An official online demo is available (demo.cooklang.org), along with a guide for running the server long-term on a Raspberry Pi.
Things to Note
- It only works with recipes in the Cooklang format, so you will need to get familiar with the markup syntax first.
- The sync feature depends on the Cook Cloud service; everything else runs entirely locally.
Discover more
Bar Assistant
Manage your home bar while adding your ingredients, searching for cocktails and creating custom cocktail recipes.
Mealie
Material design inspired recipe manager with category and tag management, shopping-lists, meal-planner, and site customizations. Mealie is focused on simple user interactions to keep the whole family using the app.
Specifically Clementines
Grocery shopping app (previously Groceries), providing reliable sync with multiple users/devices (web/Android/iOS), recipes and integration with Tandoor.
Tandoor Recipes
Django application to manage, tag and search recipes using either built-in models or external storage providers hosting PDFs, Images or other files.
Atomic Server
Knowledge graph database with documents (similar to Notion), tables, search, and a powerful linked data API. Lightweight, very fast and no runtime dependencies.
Audioserve
Simple personal server to serve audio files from directories (audiobooks, music, podcasts...). Focused on simplicity and supports sync of play position between clients.