Skip to main content

tare api guardrails rules test-against-stack

TestRuleAgainstStack evaluates a candidate rule against a project's effective stack and returns what it would run into, without storing it and without sending any traffic.

Usage:
tare api guardrails rules test-against-stack [flags]

Flags:
--against-project-id string Which project's stack to test against.
--customer-id string Owning customer scope; defaults to caller's session customer when empty.
--guardrail-id string The guardrail the rule would join.
--project-id string Owning project scope; empty at the organization.
--rule string JSON value for rule.
--scope string The level the candidate rule would be set at.

Global Flags:
--base-url string override the active profile's base URL for this invocation
-o, --output string output format: json (default "json")
-p, --profile string credential profile (overrides AGENTROUTER_PROFILE / active)
-q, --quiet Suppress progress output; only errors and the final summary go to stderr
-v, --verbose Verbose output: plain-mode progress lines plus full per-blob chunk logs to stderr