Skip to main content
The Ardent CLI connects your Postgres database to Ardent, creates isolated branches of it, and gives you their connection URLs. Use the CLI at a terminal. Use the API when you’re building your own integration.

Install

Needs Node.js 18 or newer. Check it worked:
Every command explains itself with --help:

The commands

How the CLI knows what you mean

The CLI remembers three things: your current project, connector, and branch. Commands act on the current one unless you say otherwise. After login, Ardent picks your project and connector for you if you only have one of each. If you have more, pick them yourself:
In CI, always switch project and connector explicitly. Scripts shouldn’t depend on someone’s saved defaults.

Output for scripts

Two flags cover most automation:
The JSON format, error codes, and exit codes are documented on Configuration & automation.

Environment variables

That’s all most people need. Timeout and polling knobs for CI live on Configuration & automation. For GitHub Actions, store your token as a secret named ARDENT_TOKEN and run commands normally:

A complete first branch

Preflight comes first on purpose. It checks that your database is ready — without creating anything or storing credentials.

Troubleshooting