Skip to main content
Neon Postgres Docs
current

Search documentation

Type to search this documentation.

On this pageOverview

Neon CLI command: ip-allow

Manage the IP allowlist: list, add, remove, and reset allowed IPs

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.

Subcommands: add, list, remove, reset

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.

Lists the addresses in the IP allowlist.

Bash
neon ip-allow list [options]
Option Description Type Default Required
--project-id Project ID string — No

List the IP allowlist:

Bash
neon ip-allow list --project-id cold-grass-40154007

List the IP allowlist with the --output format set to json:

Bash
neon ip-allow list --project-id cold-grass-40154007 --output json

Adds IP addresses to the IP allowlist for your Neon project.

Bash
neon ip-allow add [ips...]
Option Description Type Default Required
--protected-only If true, the list will be applied only to protected branches. boolean — No
--project-id Project ID string — No

Use --protected-only to apply the allowlist to protected branches only. Use --protected-only false to remove this setting.

Bash
neon ip-allow add 192.0.2.3 --project-id cold-grass-40154007

Removes IP addresses from the IP allowlist for your project.

Bash
neon ip-allow remove [ips...]
Option Description Type Default Required
--project-id Project ID string — No
Bash
neon ip-allow remove 192.0.2.3 --project-id cold-grass-40154007

Resets the allowlist to the IP addresses you specify. If you specify no addresses, the currently defined IP addresses are removed.

Bash
neon ip-allow reset [ips...]
Option Description Type Default Required
--project-id Project ID string — No
Bash
neon ip-allow reset 192.0.2.1 --project-id cold-grass-40154007
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu