The ip-allow command lists, adds, removes, and resets the IP allowlist for your Neon project. An allowlist can contain individual IP addresses, IP ranges, or CIDR notation. For information about Neon's IP Allow feature, see Configure IP Allow.
The --project-id option is required only if your Neon account has more than one project and no project is set in your context file.
neon ip-allow list
Lists the addresses in the IP allowlist.
neon ip-allow list [options]List the IP allowlist:
neon ip-allow list --project-id cold-grass-40154007List the IP allowlist with the --output format set to json:
neon ip-allow list --project-id cold-grass-40154007 --output jsonneon ip-allow add
Adds IP addresses to the IP allowlist for your Neon project.
neon ip-allow add [ips...]Use --protected-only to apply the allowlist to protected branches only. Use --protected-only false to remove this setting.
neon ip-allow add 192.0.2.3 --project-id cold-grass-40154007neon ip-allow remove
Removes IP addresses from the IP allowlist for your project.
neon ip-allow remove [ips...]neon ip-allow remove 192.0.2.3 --project-id cold-grass-40154007neon ip-allow reset
Resets the allowlist to the IP addresses you specify. If you specify no addresses, the currently defined IP addresses are removed.
neon ip-allow reset [ips...]neon ip-allow reset 192.0.2.1 --project-id cold-grass-40154007







