Skip to main content
The network command updates the egress, or outbound, rules of a running sandbox. Rules control which external destinations the sandbox can reach. They apply to one sandbox, by its ID, and take effect on the running sandbox.
Install the CLI and set the PPIO_API_KEY and PPIO_DOMAIN environment variables before running these commands. See Install and authenticate.
If no allowOut is specified, all outbound traffic is allowed. Omitting both --allow-out and --deny-out clears all egress rules.

Usage

Arguments and options

string
required
ID of the running sandbox to update.
string
Allowed outbound destination: an IP address or a CIDR range, such as 1.1.1.1 or 8.8.8.0/24. Repeat the option to allow several destinations.
string
Denied outbound destination: an IP address or a CIDR range, such as 1.1.1.1 or 8.8.8.0/24. Repeat the option to deny several destinations.

Examples

On success the CLI prints:
Output
The command fails when the sandbox ID does not exist. See Errors.
Last modified on November 19, 2026