# keryn init

Describes Keryn 0.5.2 and keryn-rules 0.8.0.

> write .keryn.yml and .keryn/policy.yml

Source: https://keryn.dev/docs/reference/cli/init/

Write .keryn.yml and .keryn/policy.yml.

```text
keryn init [--force]
```

## Options

```text
Usage: keryn init [--force]
  Writes .keryn.yml and .keryn/policy.yml; refuses to overwrite without --force.
  The config runs the full rule library (rules: bundled:all, as `keryn scan` does without a config); narrow it in .keryn.yml.
```

## Examples

```sh
# Write the starter configuration; refuses to overwrite.
keryn init
```

## Exit codes

| Code | Meaning |
|---|---|
| 0 | written |
| 2 | a file exists and --force was not given |
