Developers & AI
Using the CLI
The dm CLI brings DealMachine to your terminal — search, enrich, and export with simple commands or pipe JSON for scripting.
4 min read
DealMachine in your terminal
The CLI is published as @dealmachine/cli and installs the dm command. It talks to the same API, so anything you can do over REST you can do from the shell — great for scripts and one-off lookups.
Install and log in
npm install -g @dealmachine/cli
# Sign in through the browser…
dm login
# …or with an API key directly
dm login --key dm_sk_live_xxx
# Confirm who you are
dm whoamiSearch and enrich
# Search properties from an inline JSON body
dm properties search \
--body '{"locations":[{"type":"zip_code","code":"78704"}]}' --json
# Enrich a single address
dm enrich address "123 Main St, Austin, TX 78704" --json
# Discover available filters
dm filters --source-type properties --search "owner"Most commands accept --json for machine-readable output.
Handy flags
- --json — machine-readable output for scripts
- --body / -f — pass a request as inline JSON or a file
- --quiet — suppress spinners (useful in pipelines)
- --help — per-command help and options
Hook it into an AI assistant
Connect DealMachine to Claude and other AI tools with the MCP server.
Connecting the MCP serverReady to find your next deal?
Join thousands of professionals using DealMachine to find off-market properties and close more deals.
Plans start at $99/mo
All features included
Cancel anytime