branch_sql: shape every new branch
branch_sql is how teams make every branch come up ready — without each developer keeping their own setup script.
Common uses:
- Redact or anonymize sensitive values on every branch.
- Add fixtures or baseline rows.
- Apply DDL your app expects in test environments.
ardent settings list
Example output
Example output
ardent settings set
branch_sql, pass SQL inline or point at a file with @:
Advanced: run more than one branch_sql script
Advanced: run more than one branch_sql script
Give each script a name with
--hook, and control order and context:Remove a named script with
ardent settings remove branch_sql --hook <name>.ardent settings remove
Local Supabase linking
If you run Supabase locally, Ardent can point its services — auth, REST, realtime, storage — at an Ardent branch instead of the local Postgres container. Useful when you want the full local stack running against isolated, real data.ardent settings supabase status
Is a local Supabase project linked right now?--project <id> (the Supabase CLI project id).
ardent settings supabase link
Link local Supabase to the current branch:--skip-health-check only if you’ve stopped the services yourself.
ardent settings supabase unlink
Put local Supabase back on its own local database:--project <id> and --skip-health-check work here too.