@kamydev/cli
v0.6.1
Published
Command-line interface for the Kamy PDF generation API. Render templates to PDF, manage versions, push from your local filesystem.
Maintainers
Readme
Kamy CLI
Command-line interface for the Kamy PDF API. Render PDFs, manage templates, and inspect render history from your terminal.
Installation
npm install -g @kamydev/cliAuthentication
Set your API key using one of two methods:
Option 1 — Save to config file:
kamy config set-key kamy_pk_...Option 2 — Environment variable:
export KAMY_API_KEY=kamy_pk_...Get your API key from kamy.dev/dashboard/api-keys.
Commands
| Command | Description |
|---|---|
| kamy render <template> | Render a PDF from a template |
| kamy templates | List all available templates |
| kamy renders | List recent renders |
| kamy config set-key <api-key> | Save API key to ~/.kamy/config.json |
| kamy config show | Show current configuration |
Usage
Render a PDF
Pass data as inline JSON:
kamy render invoice --data '{"invoiceNumber":"INV-001","total":1500}'Load data from a file:
kamy render invoice --data @invoice-data.jsonSave the PDF to a file:
kamy render invoice --data @data.json --output invoice.pdfList templates
kamy templatesSLUG NAME TYPE
invoice Invoice system
receipt Receipt system
contract Contract system
my-report Monthly Report customView render history
kamy rendersManage configuration
kamy config set-key kamy_pk_abc123
kamy config show