---
title: Command-line interface
description: Replication topologies are configured and maintained using the dsreplication command-line utility, which supports interactive and non-interactive modes. If you are running the server for the first time, use the dsreplication tool in interactive mode.
component: pingdirectory
version: 11.0
page_id: pingdirectory:pingdirectory_server_administration_guide:pd_ds_dsreplication_cli
canonical_url: https://docs.pingidentity.com/pingdirectory/11.0/pingdirectory_server_administration_guide/pd_ds_dsreplication_cli.html
revdate: September 13, 2023
---

# Command-line interface

Replication topologies are configured and maintained using the `dsreplication` command-line utility, which supports interactive and non-interactive modes. If you are running the server for the first time, use the `dsreplication` tool in interactive mode.

The `dsreplication` tool uses the following format, including some important subcommands listed in [About the `dsreplication` command-line utility](pd_ds_replication_best_practices.html#replication_cli).

```
dsreplication  {subcommand}  {connection parameters}
```

The `dsreplication` tool keeps a history of invocations in the `logs/tools/dsreplication.history` file and keeps a log of up to 10 `dsreplication` sessions in the `logs/tools` directory.
