setup
dinvolt setup
Run inside your generated project to complete database credentials, initial tables and the first administrator:
npx dinvolt setupbunx dinvolt setuppnpm dlx dinvolt setupyarn dlx dinvolt setupPublic-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 --jsonbunx dinvolt setup --status --jsonpnpm dlx dinvolt setup --status --jsonyarn dlx dinvolt setup --status --jsonA 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 --jsonbunx dinvolt setup --complete development \
--credentials-file ../database-credentials.json --jsonpnpm dlx dinvolt setup --complete development \
--credentials-file ../database-credentials.json --jsonyarn dlx dinvolt setup --complete development \
--credentials-file ../database-credentials.json --jsonTo 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.