IntegrationAgents and CLI

Command line

The 1DB CLI does from a terminal what the dashboard does in a browser: add a site, write its keys into your env file, create forms, check a project against 1DB and read back recent leads.

  • No install
  • Writes .env files

How it works

  1. 1

    Sign in

    npx @1db/cli login opens your browser to approve a token for one organization.

  2. 2

    Add a site

    1db init <domain> creates the website and its contact form, and writes the key and form slug into your env file.

  3. 3

    Check and test it

    1db check looks at the project’s settings against 1DB; add --send to post a test lead and see it arrive.

Terminal
npx @1db/cli login
npx @1db/cli init northfieldpallets.com --env-file .env.local
npx @1db/cli check northfieldpallets --send

Good to know

Forms from a template
1db form <website> --template quote-request makes a form with the usual fields, or list your own with --fields.
Alerts and webhooks
1db notify <form> --emails or --webhook sets who hears about each lead.
Recent leads
1db leads <website> lists the latest leads, useful for replaying ones a webhook missed.

Guides

Works alongside