Skip to content

5-Minute Quickstart

This quickstart walks through five daily workflows using php vendor/bin/wire.

  1. Inspect your site schema and pages as JSON:

    Terminal window
    php vendor/bin/wire template:list --json
    php vendor/bin/wire page:find "template=home, limit=5" --json

    Every read command emits machine-readable JSON when --json is passed, making it easy to pipe into jq or CI assertions.

  2. Create and preview a schema migration:

    Terminal window
    php vendor/bin/wire make:migration add_charter_fields --type=field --field=cabins --fieldtype=FieldtypeInteger --label="Cabins" --json
    php vendor/bin/wire migrate --dry-run --json
    php vendor/bin/wire migrate --force --json

    --dry-run previews every pending migration without mutating the database.

  3. Initialize database queue tables and process one job:

    Terminal window
    php vendor/bin/wire queue:table --json
    php vendor/bin/wire queue:work --once --json
  4. Create a timestamped SQL backup before deploying:

    Terminal window
    php vendor/bin/wire db:backup --json
    php vendor/bin/wire backup:list --limit=5 --json
  5. Run automated Pest PHP tests:

    Terminal window
    php vendor/bin/wire test --json

Next steps