networks, net, vpc
Commands that act on one network take its ID either as a positional argument or with --id. If you omit it, the CLI opens an interactive picker, so always pass it in scripts.
Subcommands
- list — List networks
- get — Get network details
- create — Create a new network
- update — Update an existing network
- delete — Delete a network
list
List VPC networks, optionally filtered by organization, project, or region.Flags
| Flag | Description |
|---|---|
| Organization ID | |
| Project ID | |
| Region ID | |
Emit the full JSON payload (mutually exclusive with -q) | |
jq filter for value extraction (see Query output with -q) |
Example
get
Get details for a specific network.Flags
| Flag | Description |
|---|---|
| Network ID | |
| Organization ID | |
Emit the full JSON payload (mutually exclusive with -q) | |
jq filter for value extraction (see Query output with -q) |
create
Create a new VPC network. Accepts input from a JSON file or stdin; with neither, the CLI prompts for the network details.Flags
| Flag | Description |
|---|---|
| Path to a JSON file | |
| Read JSON from standard input | |
| Preview actions and payload without persisting | |
| Automatically confirm creation | |
Emit the full JSON payload (mutually exclusive with -q) | |
jq filter for value extraction (see Query output with -q) |
Examples
update
Update an existing network. Accepts input from a JSON file or stdin; with neither, the CLI prompts for each field, pre-filled from the network as it stands.Flags
| Flag | Description |
|---|---|
| Network ID | |
| Organization ID | |
| Path to a JSON file | |
| Read JSON from standard input | |
| Preview actions and payload without persisting | |
| Automatically confirm update | |
Emit the full JSON payload (mutually exclusive with -q) | |
jq filter for value extraction (see Query output with -q) |
Examples
delete
Delete an existing network.Flags
Related
VPC Networks (Console)
Create and manage VPC networks via the Console UI.
Load balancers (CLI)
Load balancers expose services on a network; restrict listener sources with allowed CIDRs.