> ## 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.

# metrics

> Push, pull, and run your custom metrics through Openlayer CLI

The `openlayer metrics` command allows you to push, pull, and run your [custom metrics](/tests/custom-metrics) through Openlayer CLI.

## Usage

```bash theme={null}
openlayer metrics [command]
```

Where `[command]` is one of:

* `pull`: Pull your custom metrics from the Openlayer platform to your workind directory.
* `push`: Push your custom metrics to the Openlayer platform.
* `run`: Run your custom metrics locally.

For the commands above, you can pass the flag `-d` (or `--directory`) to point to the
directory containing the custom metrics. You can point to a single metric or a directory of metrics. (default `"metrics"`)

For example, to push the directory `metric_name` to the platform:

```bash theme={null}
openlayer metrics push -d metric_name
```

## Related guides

* [Custom metrics](/tests/custom-metrics).
