weavori connect
Save a PostgreSQL connection string for use with other commands.
Usage
weavori connect [dsn]
The connect command saves a PostgreSQL connection string (DSN) to your Weavori config so subsequent commands (generate, sync, estimate, doctor) use it automatically.
Without arguments, it prompts for a DSN interactively. With a DSN argument, it validates and saves it directly.
By default, it tests the connection before saving. Use --no-test to skip the connectivity check (e.g., for offline use).
Flags
| Flag | Default | Description |
|---|---|---|
--no-test | false | Skip connectivity test and save the DSN as-is |
--offline | false | Alias for --no-test |
Examples
Interactive prompt
weavori connect
Enter PostgreSQL DSN: postgres://user:pass@localhost:5432/mydb
✓ Connection successful! DSN saved to config.
Direct argument
weavori connect postgres://user:pass@localhost:5432/mydb
Offline (skip connectivity test)
weavori connect postgres://user:pass@localhost:5432/mydb --no-test
✓ DSN saved to config (no connectivity test).