paubox send
Send a single HIPAA compliant email.Flags
| Flag | Required | Description |
|---|---|---|
--to <email> | Yes | Recipient email address. Repeat for multiple recipients: --to a@example.com --to b@example.com |
--subject <text> | Yes | Email subject line |
--html <html> | One of --html or --text | HTML message body |
--text <text> | One of --html or --text | Plain-text message body |
--from <email> | No | Sender address. Defaults to defaultFrom from config if set. Must be on a verified Paubox domain |
--attachment <path> | No | Path to a file to attach. Repeat for multiple attachments |
Example
Output
paubox status
Check the delivery status of a sent message.Example
Output
paubox config
Manage CLI configuration stored in~/.config/paubox/config.json.
Subcommands
| Subcommand | Description |
|---|---|
paubox config set <key> <value> | Set a configuration value |
paubox config get <key> | Print the current value for a key |
paubox config list | Print all configuration keys and values |
paubox config reset | Remove all configuration values |
Supported keys
| Key | Description |
|---|---|
defaultFrom | Default sender address used when --from is not passed to paubox send |
Examples
paubox config stores general settings only. API credentials are managed separately with paubox auth and stored in the OS keychain, not in config.json.paubox forms
Fetch and submit Paubox Forms from the terminal. These commands hit the public Forms endpoints and do not requirepaubox auth login.
Subcommands
| Subcommand | Description |
|---|---|
paubox forms get <formId> | Fetch a form’s metadata |
paubox forms submit <formId> [options] | Submit a response (and optional attachments) to a form |
paubox forms get
Fetch a form’s metadata, including its title, description, and submission count.Flags
| Flag | Required | Description |
|---|---|---|
<formId> | Yes | UUID of the form to fetch |
--json | No | Return the raw API response object as JSON instead of the human-readable summary |
Example
Output
paubox forms submit
Submit a response to a form, optionally with attachments.Flags
| Flag | Required | Description |
|---|---|---|
<formId> | Yes | UUID of the form to submit a response to |
--data <key>=<value> | One of --data or --data-file | Form field as a key=value pair. Repeat for multiple fields. Values may contain = |
--data-file <path> | One of --data or --data-file | Path to a JSON file whose top-level string values are used as form_data. Merged with --data; --data takes precedence on key conflicts |
--attach <file> | No | File to include as an attachment. Repeat for multiple attachments. Total request size must not exceed 250 MB |
--json | No | Print machine-readable JSON output instead of the human-readable success line |
Examples
Submit with--data fields only:
--data fields and an attachment:
Output
--json:
Global options
These flags work with any command.| Flag | Description |
|---|---|
--json | Output results as JSON instead of human-readable text. Useful for scripting and CI pipelines |
-q, --quiet | Suppress all non-essential output. Errors are still printed |
-v, --version | Print the installed CLI version and exit |
--help | Print usage information for a command and exit |
Examples
Exit codes
The CLI exits with0 on success and a non-zero code on failure. Use this in scripts and CI pipelines to detect errors: