Skip to content
Dinvolt
Esc
↑↓navigate↵open⌘Jpreview
On this page

setup

dinvolt setup

Run inside your generated project to complete database credentials, initial tables and the first administrator:

npx dinvolt setup
bunx dinvolt setup
pnpm dlx dinvolt setup
yarn dlx dinvolt setup

Public-only projects have nothing to configure. For admin projects, setup preserves existing users and custom code.

Inspect connection status

This reads connection status without changing files or databases:

npx dinvolt setup --status --json
bunx dinvolt setup --status --json
pnpm dlx dinvolt setup --status --json
yarn dlx dinvolt setup --status --json

A successful connection alone does not confirm that tables or an administrator are ready.

Complete an environment without prompts

npx dinvolt setup --complete development \
  --credentials-file ../database-credentials.json --json
bunx dinvolt setup --complete development \
  --credentials-file ../database-credentials.json --json
pnpm dlx dinvolt setup --complete development \
  --credentials-file ../database-credentials.json --json
yarn dlx dinvolt setup --complete development \
  --credentials-file ../database-credentials.json --json

To also create the first administrator, add the administrator options. Its environments must also appear in --complete.

Option Purpose
--status Inspect connections. Cannot be combined with changes.
--add-environments <environments> Enable comma-separated development, staging, production.
--complete <environments> Verify credentials and initialize/check selected databases.
--credentials-file <path> Supply credentials. Otherwise, use effective project/inherited values.
--use-private-env Use an ignored alternative if the existing dotenv file is tracked. Requires --complete.

Without an action, non-interactive setup only inspects connections. Initialization applies a compatible initial migration; incompatible schemas and later migrations need manual review.

Restart your development server after changing environment values. See Database and Authentication for application configuration.

Was this page helpful?