Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.3 KB

File metadata and controls

44 lines (29 loc) · 1.3 KB

CLI Reference 💻

Most people should use Fence as a GitHub Action. Its Rust agent also includes a CLI for checking the version, inspecting a runner, and previewing a policy:

fence --version
fence check-support
fence render-plan --config policy.json
fence run --config /run/fence/example/config.json

Print The Version

fence --version

This prints the agent version. Source builds use Cargo.toml; published Action bundles record their version and provenance in action/bundle-manifest.json.

Check Runner Information

fence check-support

This shows the operating system, architecture, available backend, and reference runner profile. It does not check every required security control, activate Fence, or protect the runner.

Preview A Policy

fence render-plan --config policy.json

This validates a JSON configuration and prints the firewall rules without applying them.

Run The Agent

fence run --config /run/fence/example/config.json

Fence must start through its GitHub Action. Running the command directly fails with trusted_launcher_required, so an ordinary process cannot claim the runner is protected.

See how Fence works and the configuration contract for more detail.