The CLI organizes commands into groups: permits, contractors, addresses, geographic lookups, tags, usage, and config. Every command outputs JSON to stdout and supportsDocumentation Index
Fetch the complete documentation index at: https://docs.shovels.ai/llms.txt
Use this file to discover all available pages before exploring further.
--help for detailed usage.
Command Reference
permits
Search and retrieve building permit data.| Subcommand | Description | Key Flags |
|---|---|---|
permits search | Search permits by location, date, tags, and filters | --geo-id (required), --permit-from (required), --permit-to (required) |
permits get | Retrieve 1-50 permits by ID | Positional IDs |
contractors
Search contractors and access their permits, employees, and metrics.| Subcommand | Description | Key Flags |
|---|---|---|
contractors search | Search contractors by location and filters | --geo-id (required) |
contractors get | Retrieve 1-50 contractors by ID | Positional IDs |
contractors permits | List permits filed by a contractor | Contractor ID (positional) |
contractors employees | List employees of a contractor | Contractor ID (positional) |
contractors metrics | Monthly performance metrics | --metric-from, --metric-to, --property-type, --tag (all required) |
Contractor search supports state, county, city, jurisdiction, and ZIP code geo_ids, but not address-level geo_ids. Use
permits search for address-level queries.addresses
Search for addresses to resolve geo_ids.geo_id, formatted name, and coordinates.
cities, counties, jurisdictions
Resolve geographic names to geo_ids for use in search commands.tags
List available permit tags (work type classifications).solar, hvac, roofing, electrical, pool_spa, new_dwelling, kitchen_remodel, and more. Use these values with the --tags flag in search commands.
usage
Check your API credit usage and limits.config
Manage persistent CLI settings.version
Print CLI version, git commit, and build date.Common Search Filters
These flags are available onpermits search and contractors search:
Tag Filters
- prefix for exclusion. Mix includes and excludes as needed.
Property Filters
Permit Filters
Contractor Filters (contractor search only)
Global Flags
These flags apply to all commands:| Flag | Description | Default |
|---|---|---|
--limit | Max records to return (1-100000 or all) | 50 |
--max-records | Cap when using --limit all | 10000 |
--include-count | Include total result count in response | false |
--base-url | Override API endpoint | Config or default |
--no-retry | Disable automatic retry on rate limits | false |
--timeout | Per-request timeout (Go duration format) | 30s |
Getting Help
Every command supports--help:
Related Articles
- CLI quickstart guide — First query in under a minute
- Output format and pagination — Understanding JSON responses
- Scripting and AI agents — Composing CLI commands into workflows
