Skip to main content

monsieur-cuisine-cli

A command-line client for managing recipes in a monsieur-cuisine.com account.

The CLI supports Lidl account sign-in, profile lookup, recipe listing and retrieval, recipe creation and updates, public recipe URL lookup, and direct API requests. It is an unofficial community project; see the disclaimer.

Install

Run the latest release from PyPI without installing it permanently:

uvx monsieur-cuisine-cli --help

Or install it as a persistent uv tool:

uv tool install monsieur-cuisine-cli
monsieur-cuisine-cli --help

The executable is named monsieur-cuisine-cli in both cases. For project development setup, see CONTRIBUTING.md.

Sign in

Start the Lidl OAuth login flow used by the Monsieur Cuisine Android app:

monsieur-cuisine-cli auth login

By default, login opens a visible Chromium window through Playwright and captures the app's OAuth callback automatically. If Playwright Chromium is missing, the CLI installs it automatically. Complete sign-in and any reCAPTCHA challenge in the browser.

To use your system browser instead, pass --browser:

monsieur-cuisine-cli auth login --browser

Copy the final redirect URL beginning with lidl-com.monsieur-cuisine.companion:// and paste it into the terminal when prompted.

The session is saved beside the config file, by default at ~/.config/monsieur-cuisine/session.json (or under $XDG_CONFIG_HOME). The file is restricted to the account owner. Expired API tokens are refreshed automatically and the failed request is retried. auth renew remains available for manual refresh. Check or clear the saved session with:

monsieur-cuisine-cli auth status
monsieur-cuisine-cli auth renew
monsieur-cuisine-cli auth logout

Use the CLI

View your profile and list or fetch your recipes:

monsieur-cuisine-cli profile
monsieur-cuisine-cli recipes list
monsieur-cuisine-cli recipes list --page 2 --size 50
monsieur-cuisine-cli recipes get 238467

By default, recipe lists print a compact title, ID, and status summary, while recipe details show the main fields. Add --json to profile, api, recipes url, recipes list, recipes get, recipes create, or recipes update to print normalized response data as JSON.

Create and update recipes by passing JSON data:

monsieur-cuisine-cli recipes create --data '{"status":"draft","source":"member","languageLocale":"pt-PT","deviceTypeIds":[13],"title":"My recipe","servingSizes":[]}'
monsieur-cuisine-cli recipes update 238467 --data '{"status":"draft","source":"member","languageLocale":"pt-PT","deviceTypeIds":[13],"title":"Updated recipe","servingSizes":[]}'

Add --thumbnail PATH and/or --details-image PATH to upload local recipe images during creation or update. The CLI uploads them and adds the returned media IDs to the recipe payload.

Recipe listing and retrieval use the observed authenticated v3 routes by default. --use-v1 selects the deprecated v1 routes for those commands. Recipe writes send data directly to the account API; use valid IDs and include fields you want to retain in an update.

Resolve a public recipe page URL to its API details:

monsieur-cuisine-cli recipes url 'https://www.monsieur-cuisine.com/pt-pt/recipe/pasta-de-abacate-com-salmao-2'

Call an API endpoint directly with the saved session:

monsieur-cuisine-cli api api/v2/recipes/238467
monsieur-cuisine-cli api api/v1/my-recipes/page/1/size/20
monsieur-cuisine-cli api api/v1/custom-endpoint --method POST --data '{"name":"My recipe"}'

Supported methods are GET, POST, PUT, PATCH, and DELETE. Supply a relative API path; requests always go to the Monsieur Cuisine API host. Write methods can change account data, and endpoints requiring the app's encrypted request/response format are not automatically encrypted or decrypted.

Configuration

On first run, the CLI creates ~/.config/monsieur-cuisine/config.toml (or the platform's user config location) from its packaged defaults. View or edit login defaults with:

monsieur-cuisine-cli config
monsieur-cuisine-cli config --edit

The global --lang option sets the locale for API requests and Lidl sign-in; it defaults to en-US. For example:

monsieur-cuisine-cli --lang pt-PT profile

Use --config PATH to select another config file, or --env NAME to merge a named [env.NAME] section. Use --session-file NAME to choose a different session filename; relative names resolve beside the config file.

Development

See CONTRIBUTING.md for development setup, checks, and API research notes.

Disclaimer

This is an unofficial community project and is not affiliated with or endorsed by monsieur-cuisine.com, Lidl, or their operators. Use it only with an account you are authorized to access, and follow the services' terms and applicable policies.

Metadata

Release files for monsieur-cuisine-cli 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for monsieur-cuisine-cli 0.0.4
File Size Uploaded Provenance Actions
monsieur_cuisine_cli-0.0.4.tar.gz 23.5 kB Without provenance Details for monsieur_cuisine_cli-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for monsieur-cuisine-cli 0.0.4
File Interpreter ABI Platform Actions
monsieur_cuisine_cli-0.0.4-py3-none-any.whl Python 3 none any Details for monsieur_cuisine_cli-0.0.4-py3-none-any.whl

Total release size: 45.2 kB

Release files / monsieur_cuisine_cli-0.0.4.tar.gz

Download URL monsieur_cuisine_cli-0.0.4.tar.gz
Size 23.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d4f6063429ee5e0e4fe54a72accf31f944c0c0c1f71f35e72900263b68c3f9e4
BLAKE2b-256 checksum
How to use checksums
fcb23b996931015504a010d0c2ffff67bdc873c2ab55e8c6f72ea92118dcb33f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.22

Release files / monsieur_cuisine_cli-0.0.4-py3-none-any.whl

Download URL monsieur_cuisine_cli-0.0.4-py3-none-any.whl
Size 21.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
136db30f4caa03a1f26591056d1059c2fa0ecc6cc12812ffec133260c5af682e
BLAKE2b-256 checksum
How to use checksums
2c95b43752c634c593e4e5274b8e68b22c351c35fe8a46ca230e479a4197bae9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.22

Security for monsieur-cuisine-cli 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page