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 init
bash

What it does

  1. Prompts for each required credential (Google service account, database URL, Sanity project ID, dataset, token, and site URL)
  2. Tests each connection as you enter it — validates the service account JSON, connects to PostgreSQL, and verifies Sanity access
  3. Writes a .env file with properly prefixed PAGEBRIDGE_ variables
  4. Lists accessible GSC sites (if credentials are valid) so you know which site URL to use with sync
  5. Shows next steps including the pagebridge sync command to run

Examples

# Run the interactive setup
pagebridge init
bash

After init

Once the wizard completes, follow the suggested next steps:

  1. Push the database schema: pagebridge db:push
  2. Verify everything with: pagebridge doctor
  3. Run your first sync: pagebridge sync --site sc-domain:your-site.com --migrate

See also