Command line
Kupcake CLI
Kupcake CLI is the command-line version of Kupcake, built for macOS workflows without a graphical interface.
This bundle is available for macOS only.
Ready to run on macOS
Download the bundle, unpack it, and call Kupcake from your terminal or scripts.
Download macOS bundleKupcake CLI is the command-line version of Kupcake. It is built for users who want to automate document generation or work directly from the terminal.
Installation on macOS
- Download the
kupcake-cli-<version>.ziparchive. - Unzip it in a folder of your choice, for example
~/Applications/kupcake-cli/. - Make sure
nodeis available in yourPATH. - Add the launcher to your
PATH, for example:
ln -s ~/Applications/kupcake-cli/bin/kupcake /usr/local/bin/kupcake
If /usr/local/bin is not available on your machine, use any directory already present in your PATH.
You can then verify the installation:
kupcake --help
Usage
Use kupcake generate to turn a Markdown file or a .kck file into a PDF. The command accepts a metadata file passed with --metadata.
kupcake generate document.md --metadata metadata.json --template rtone --output document.pdf
Useful options:
--metadatapoints to the JSON metadata file--templateselects the TeX template to use--qualitycontrols PDF compression, for examplelow,medium, orhigh--outputsets the output PDF path
Example:
kupcake generate report.kck --metadata metadata.json --template rtone --quality high --output report.pdf
Notes
- The bundle includes the CLI launcher, templates, and runtime tools.
- It does not require a global Pandoc or LaTeX installation.
- If you move the bundle directory, recreate the
kupcakesymlink if you use one.