Watch DealMachine in action, live + Black Friday promo preview. Register for DealMachine Demo Week now.Save my seat
DealMachine

Developers & AI

Using the CLI

Install the dm command-line tool, log in, and run searches, enrichment, and exports from your terminal.

1 min read

On this page

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 whoami

Search 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 server

Ready to find your next deal?

Join thousands of professionals using DealMachine to find off-market properties and close more deals.

Explore for free
No credit card to start