---
title: Exporting a Configuration Document From the Command-line
slug: ps/help/en_us/vtm/cfgimport/exporting-a-configuration-document-from-the-command-line
docTags: 
createdAt: 2026-08-02T08:46:48.928Z
---

An administrator can also generate a configuration document from the command-line using the Traffic Manager’s config-export program. For example:

```bash
# Exports a configuration document to /import/config/example-config.yaml

$ZEUSHOME/zxtm/bin/config-export --filename "example-config.yaml"
                                 --format yaml
                                 --secrets exclude
                                 --chdir /import
                                 ./config
```

For a complete list of the available options, type:

```bash
$ZEUSHOME/zxtm/bin/config-export --help
```
