# openrail config

> Export an environment's services and settings to a file.

Export an environment's services and settings to a file.

## Usage

```sh
openrail config pull [--file PATH]
```

## Flags

| Flag | Meaning |
|---|---|
| `--file PATH` | Where to write (default `openrail.yaml`; `-` for standard output) |

## Details

- The file uses the [config file schema](https://openrail.app/docs/reference/config-file). Variables are listed by name; values are not written.

## Railway equivalent

Railway has no direct equivalent; its `config` style sync is planned for a later openrail release.

Every command also accepts the [global options](https://openrail.app/docs/cli/global-options).
