Share feedback
Answers are generated based on the documentation.

sbx policy ls

DescriptionList sandbox policies
Usagesbx policy ls [SANDBOX] [flags]

Description

List active sandbox policies.

Without SANDBOX, the command shows one overview row per policy with its source, where it applies, and a summary of decisions by resource type. With SANDBOX, it summarizes active rules that apply to that sandbox.

Use --wide to show the detailed rule-level table with rule IDs, resources, status, and rule metadata. Use --json for the filtered daemon response.

When remote governance is active, inactive policy rules are hidden by default. Use --include-inactive to show inactive rules for troubleshooting. Use "sbx policy inspect " for full detail on a selected policy or rule.

Options

OptionDefaultDescription
--decisionFilter policies by decision: "allow" or "deny"
--include-inactiveShow inactive policy rules hidden by remote governance
--jsonOutput filtered policy rules as JSON
--sourceFilter policies by source: "local", "org", or "kit"
--typeallFilter policies by type: "all", "network", or "filesystem" (default "all")
--wideShow detailed rule-level output with rule IDs and resources

Global options

OptionDefaultDescription
-D, --debugEnable debug logging

Examples

# List all policies
sbx policy ls

# List the policies that apply to one sandbox
sbx policy ls my-sandbox

# Show detailed rule-level rows with rule IDs and resources
sbx policy ls --wide

# Output filtered rules as JSON
sbx policy ls --json

# List only network policies
sbx policy ls --type network

# List organization policies that deny access
sbx policy ls --source org --decision deny

# Include inactive rules hidden by remote governance
sbx policy ls --include-inactive
Morty Proxy This is a proxified and sanitized view of the page, visit original site.