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

# tests

> Export the test definitions (goals) for an Openlayer project

The `openlayer tests` command exports the test definitions (goals) for the current
Openlayer project as JSON. This is useful for bootstrapping or syncing a local
[`tests.json`](/development/tests-json) from tests defined in the platform.

## Usage

```bash theme={null}
openlayer tests [flags]
```

### Examples

```bash theme={null}
# Print the project's tests to stdout
openlayer tests

# Write the tests to a file
openlayer tests --output tests.json
```

## Flags

| Flag       | Alias | Default  | Description                          |
| ---------- | ----- | -------- | ------------------------------------ |
| `--output` | `-o`  | `stdout` | Output file to write the tests JSON. |
