Skip to main content
Common lofty-cli recipes you can copy and run today. Each example assumes you have already completed Install and Authentication.

1. List leads

Limit to fields you actually need:
Fuzzy-search by name, phone, or email — the server matches all three:

2. Get one record by ID

3. Create a record from JSON

Pass the request body as inline JSON:
For larger payloads, source the body from a file:

4. Pipe to jq for ad-hoc analytics

5. Bulk export to CSV

Append more pages without repeating the header:

6. Use the CLI from a script with strict error handling

7. Run from CI/CD

Configure environment variables once on the runner:
Then any command works without an interactive auth login:

8. Discover commands you do not know

The CLI is fully self-describing. Walk the help tree until you find what you need:
Or browse the Command Reference on this site.

Next steps

API Reference

Cross-reference commands with the live API spec.

Output formats

Piping patterns for JSON, CSV, YAML, and text.

Troubleshooting

Common fixes when something fails unexpectedly.