# rootform compile

Compile a Policy Pack for offline checks

<!-- Generated from reference/cli.json. Run bun run generate:cli; do not edit this page. -->

Compile a Policy Pack for offline checks.

## Usage

```text
rootform compile <command> [options]
```

## Options

### Global options

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| ` -h, --help ` | ` bool ` | ` false ` | show how to use rootform compile |
| ` --color ` | ` mode ` | ` auto ` | color human output: `auto\|always\|never`; default: auto |
| ` --no-pager ` | ` bool ` | ` false ` | print a long report in full instead of opening it in less |

## Behavior

Compile Policy Pack sources with explicit semantic pins for later checks.

## Exit status

| Status | Description |
| --- | --- |
| `0` | help was shown |
| `2` | the command was used incorrectly |

## Subcommands

| Command | Purpose |
| --- | --- |
| [` rootform compile policy-pack `](https://docs.rootform.dev/reference/cli/compile/policy-pack/) | Compile and pin a Policy Pack |
