- Render a file during a build, a deploy, or a cron job.
- Batch many templates from a shell script.
- Let an agent or a script create files without writing code.
Before you start
- A Bannerify account with at least one template.
- An API key. Create one in API keys.
Install
Install the CLI with npm:Save your API key
Store the key once, likegit config:
$XDG_CONFIG_HOME/bannerify/config.json, or ~/.config/bannerify/config.json. The file is created with 0600 permissions.
Confirm the key works:
Generate an image
--modifications:
name and sets its value with text, src, or another field of that layer type.
Generate a PDF
Use it in a pipeline
The CLI keeps stdout for data and stderr for messages, so the bytes of a file pass cleanly to the next command. Write to stdout with--out=-:
Key resolution
The CLI looks for the API key in this order:- The
--api-keyflag. - The
BANNERIFY_API_KEYenvironment variable. - The stored config.
Configuration file
Manage the file with the
config commands. See CLI commands.