# keryn application validate

Describes Keryn 0.5.2 and keryn-rules 0.8.0.

> keryn application validate: check an application profile (.keryn/application.yml) and show the stages keryn ci would run for it

Source: https://keryn.dev/docs/reference/cli/application-validate/

> **Caution: Next release: keryn application validate**
> On main; not in Keryn 0.5.2, the latest release.

Check an application profile (.keryn/application.yml) and show the stages keryn ci would run for it.

```text
keryn application validate [file] [--json]
```

## Options

```text
Usage: keryn application validate [file] [--json]
       keryn application show [file] [--root <repository>] [--json]
  An application profile (default .keryn/application.yml, apiVersion keryn.dev/application/v1) declares one application: id, name,
  owner; sources (repository-relative directories, optional repository-relative include/exclude globs, optional deepTimeout in
  seconds for Deep, extra local repositories under repos:);
  artifacts (paths or globs to built files, kind binary|package, optional expected sha256, optional maxBytes per-artifact cap); web targets (url, mode passive, optional
  auth file); sca mode offline|online|off; output.failOn. validate checks it against the schema (exit 0 valid, 1 problems, 2 unreadable).
  show resolves the globs (code-point order, symlinks not followed) and prints every stage keryn ci --application-file would run,
  with the artifacts' sizes and sha256 and every input it would skip and why. The repository is --root, else the folder holding
  .keryn/, else the profile's folder. Active web mode requires ownershipProof; planning sends nothing and execution verifies current ownership.
```

## Examples

```sh
# Check .keryn/application.yml.
keryn application validate
```

## Exit codes

| Code | Meaning |
|---|---|
| 0 | valid |
| 1 | problems |
| 2 | unreadable |
