pagebridge init
Interactive setup wizard that walks you through each credential, tests connections as you go, and writes a properly configured .env file.
Usage
pagebridge initWhat it does
- Prompts for each required credential (Google service account, database URL, Sanity project ID, dataset, token, and site URL)
- Tests each connection as you enter it — validates the service account JSON, connects to PostgreSQL, and verifies Sanity access
- Writes a
.envfile with properly prefixedPAGEBRIDGE_variables - Lists accessible GSC sites (if credentials are valid) so you know which site URL to use with sync
- Shows next steps including the
pagebridge synccommand to run
Examples
# Run the interactive setup
pagebridge initAfter init
Once the wizard completes, follow the suggested next steps:
- Push the database schema:
pagebridge db:push - Verify everything with:
pagebridge doctor - Run your first sync:
pagebridge sync --site sc-domain:your-site.com --migrate
See also
- Quick Start — full setup walkthrough
- doctor command — validate your setup
- Environment Variables — full variable reference