cc

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Command cc is the CrowdControl reference CLI. It loads .cc policy files, evaluates them against JSON input, validates them against an optional schema, or runs JSON-defined test suites against them.

Usage:

cc evaluate --input doc.json --policy ./policies [--policy ./more] [--explain]
cc validate --policy ./policies [--schema schema.json] [path/to/file.cc ...]
cc test ./tests/                                  # run a directory of test files
cc parse path/to/file.cc                          # syntax-check a single file
cc serve --policy ./policies [--addr :8080]       # run as an HTTP PDP
cc version

cc has zero non-stdlib dependencies. It is the reference implementation for SDKs in other languages — every native port should produce the same decisions for the same inputs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL