Configuration
The CLI stores its configuration at~/.dealmachine/config.json. This file is created during dm login and contains your credentials and preferences.
Config File
Location:~/.dealmachine/config.json
Permissions: 0600 (owner-only read/write)
Configuration Values
Changing the API Environment
Switch between local development and production:Environment Variable Overrides
Environment variables take precedence over config file values:The longer forms
DEALMACHINE_API_URL and DEALMACHINE_ENVIRONMENT also work.API URL Resolution
Local Development Setup
If you’re working on the DealMachine codebase and want to run the CLI against your local API:dm:setup does not start or manage MySQL — it assumes you’ve already run npm run db:setup. It only generates an API key, builds the CLI, links it globally, and logs you in against localhost:3001.