📹 The future of AI infrastructure: optimize and shard your database with agents.Watch the talk
Navigation

Manage Postgres IP restrictions from the CLI

You can now manage Postgres IP restrictions from the PlanetScale CLI with pscale database ip-restriction. Control which IP ranges can reach your database.

pscale database ip-restriction list <database>
pscale database ip-restriction create <database> --cidrs 203.0.113.0/24
pscale database ip-restriction show <database> <entry-id>
pscale database ip-restriction update <database> <entry-id> --cidrs 198.51.100.10/32
pscale database ip-restriction delete <database> <entry-id>

Read more about IP restrictions