cook.md

Getting Started

After installation, you'll need to configure the sync agent with your recipes folder and log in to your Cook.md account. Syncing needs a plan with sync (Cook Basic or Pro); accounts from before the paywall sync free. Cook Sync provides both a graphical interface via the system tray and a command line interface.

First Launch

When you first start Cook Sync, the "Welcome to Cook Sync" window guides you through the setup:

  1. Connect to Cook.md - Click Login to Cook.md and sign in in your browser
  2. Choose recipes directory - Select where you keep your Cooklang recipe files
  3. Preferences (optional) - Start with the system, and update automatically

Click Get Started and the agent begins syncing.

System Tray

Cook Sync lives in your system tray (menu bar on macOS), showing sync status at a glance. Click the icon for the menu: the sync status, Pause Sync / Resume Sync, Login / Logout, Set recipes folder..., Open recipes folder, Start on system startup, Check for updates..., About Cook Sync and Quit. If the status reads "Sync needs a plan", Subscribe… opens the pricing page.

Command Line

Most actions are also available from the command line. To start the sync agent:

cook-sync start

The agent will start running in the background and appear in your system tray.

The installers don't put cook-sync on your PATH, so call the program where it lives:

  • macOS: "/Applications/Cook Sync.app/Contents/MacOS/cook-sync"
  • Linux: the AppImage itself, for example ~/Applications/cook-sync.AppImage
  • Windows: cook-sync.exe in the folder you installed to

The examples on these pages write cook-sync for short.

Logging In

Log in via the system tray menu, or from the command line:

cook-sync login

This will open your default browser where you sign in with a code sent to your email. Once authenticated, the browser will redirect back and your session will be saved.

On a server or in Docker, where there is no browser, use the device-code flow. It prints a code to enter on another device:

cook-sync login --headless

Configuration

Setting Your Recipes Directory

Tell the sync agent where your recipe files are located:

cook-sync config --recipes-dir ~/Documents/CookRecipes

Auto-Start

The sync agent starts automatically when you log in to your computer. To turn that off, untick Start on system startup in the tray menu, or run:

cook-sync config --auto-start false

Viewing Current Configuration

To see your current settings:

cook-sync config --show

Configuration Files

Configuration is stored in these locations:

  • macOS: ~/Library/Application Support/cook-sync/
  • Linux: ~/.config/cook-sync/
  • Windows: %APPDATA%\cook-sync\

Command Line Reference

Here are all the available CLI commands:

Command Description
cook-sync start Start the sync agent
cook-sync stop Stop the running agent (macOS and Linux; on Windows use Quit in the tray menu)
cook-sync status Show sync status and configuration
cook-sync login Open browser for login (--headless for a device code)
cook-sync logout Log out and clear session
cook-sync config Configure settings (see options below)
cook-sync update Check for an update; installs it when auto-update is on
cook-sync reset Reset all configuration and data

Config Options

  • --recipes-dir <path> - Set recipes directory
  • --auto-start <true/false> - Enable/disable auto-start
  • --auto-update <true/false> - Enable/disable auto-update
  • --show - Display current configuration

Auto-Updates

With auto-update on, Cook Sync checks for a new version shortly after it starts, installs it and restarts. It checks once per start, so an agent that runs for weeks updates the next time it starts. The updater is built in and works the same on macOS, Windows and Linux.

With auto-update off, nothing is checked in the background. To check by hand, choose Check for updates... in the tray menu, or run:

cook-sync update

With auto-update off this only reports that a new version is available. Turn it on to install:

cook-sync config --auto-update true

Having issues? Check out the Troubleshooting page for common problems and solutions.