> ## Documentation Index
> Fetch the complete documentation index at: https://graph.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# graph pack test

> Run check, then every migration over its sample files in tests/migrations/v<N>/ and validate the result

For each `tests/migrations/v<N>/`, copies it to a temporary directory, runs `migrate_v<N>` and every later migration with `apply: true`, then validates the migrated plans, agents and tools against the pack as it is now: every pack item they call must be public, and every literal step input must match the called tool's input schema. Migrations that call `builtin__infer` use your configured model providers. Exits 1 on any problem, naming the file. A directory without pack.toml is a packs repository: every immediate subdirectory holding one is tested, so a repository's CI is `graph pack test` at its root.

## Arguments

**PATH** `string` (default: .)

The pack's directory, holding pack.toml, or a packs repository whose subdirectories hold packs

## Options

**--json** `boolean`

Print a JSON envelope instead of text

## Global options

**-v, --verbose** `integer`

Increase log verbosity (-v info, -vv debug, -vvv trace)

```bash Usage theme={null}
graph pack test [OPTIONS] [PATH]
```

```bash Example 1 theme={null}
graph pack test
```

```bash Example 2 theme={null}
graph pack test files --json
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.