config
Per-machine CLI settings.
papermark config reads and writes per-machine settings stored in
the same file as the credentials (~/.config/papermark/config.json
on macOS/Linux). Currently the only configurable key is api-url.
get
papermark config get [key]With no argument, prints all known settings as JSON. With a key, prints just that value.
$ papermark config get
{
"apiUrl": "https://api.papermark.com"
}
$ papermark config get api-url
https://api.papermark.comset
papermark config set <key> <value>Writes the value to the config file.
papermark config set api-url http://localhost:3000/apiunset
papermark config unset <key>Removes the value, falling back to defaults on the next call.
papermark config unset api-urlKnown keys
| Key | Default | What it does |
|---|---|---|
api-url | https://api.papermark.com | Override the API base URL. Useful for local dev (http://localhost:3000/api) and self-hosted deployments. |
The api-url setting is also overridable per call via the
PAPERMARK_API_URL env var — env wins over config file.