| Script | Purpose | Branch |
|---|
dev | Start Astro dev server | Both |
build | Build for production | Both |
preview | Preview production build | Both |
check | Run astro check (type checking) | Both |
lint | Run ESLint | Both |
test | Run Vitest | Both |
db:generate | Generate Drizzle migration | Both |
db:migrate | Apply Drizzle migrations | Both |
db:studio | Open Drizzle Studio | Both |
deploy:pages | Deploy to Cloudflare Pages | spike/cf-runtime |
deploy:pages:staging | Deploy to testing | spike/cf-runtime |
deploy:pages:prod | Deploy to production | spike/cf-runtime |
deploy:worker | Deploy via wrangler CLI | spike/cf-runtime |
seed:local | Seed DB from local JSON/mJS files | spike/cf-runtime |
| Script | Purpose | Branch |
|---|
register-portal-domain.mjs | Register portal custom hostname via Cloudflare for SaaS | spike/cf-runtime |
ci-default-project-id.mjs | Set default project ID for CI | spike/cf-runtime |
seed-local-data.mjs | Seed agents, units, and pages from local JSON files | spike/cf-runtime |
These scripts were used by the legacy Directus/per-client infrastructure and are kept for reference only:
| Script | Purpose | Replaced By |
|---|
dokploy-deploy-client.mjs | Deploy Directus via Dokploy API | N/A (Directus retired) |
setup-directus-schema.mjs | Configure Directus collections | Built-in CRM |
seed-directus.mjs | Seed Directus data | seed:local npm script |
configure-directus-rbac.mjs | Directus roles/permissions | Built-in CRM (Phase 6) |
export-directus-snapshot.mjs | Export Directus schema snapshot | N/A |
verify-directus-oidc.mjs | Verify Directus OIDC | N/A |
cloudflare-tunnel-setup.mjs | Configure tunnel ingress | for SaaS replaces tunnels |
cloudflare-access-setup.mjs | Create Access app/policy | Cloudflare Dashboard |
deploy-pages.mjs | Deploy to Cloudflare Pages | N/A (merged into deploy scripts) |
deploy-compose.sh | Docker Compose deployment | N/A |
deploy-client.sh | Full client provisioning | N/A |
provision-client-postgres.sh | Create client DB + user | Multi-tenant schema phase |
seed-test-buyer.mjs | Seed test buyer | Handled by portal registration |