> For the complete documentation index, see [llms.txt](https://docs.percona.com/percona-clustersync-for-mongodb/llms.txt).

# Build from source code

## Before you start

Check the [system requirements](https://docs.percona.com/percona-clustersync-for-mongodb/system-requirements.md) and [known limitations](https://docs.percona.com/percona-clustersync-for-mongodb/limitations.md).

## Prerequisites

To build Percona ClusterSync for MongoDB from source, you need the following:

- Go 1.27 or later. [Install and set up Go tools](https://golang.org/doc/install)
- make
- git

## Build steps

Here’s how to build Percona ClusterSync for MongoDB:

1. Clone the repository and change directory to `pcsm`:

   ```bash
   $ git clone https://github.com/percona/percona-clustersync-mongodb.git pcsm
   $ cd pcsm
   ```

1. Build the project using the Makefile:

   ```bash
   $ make build
   ```

   Alternatively, you can install PCSM from the cloned repo using `go install`:

   ```bash
   $ go install .
   ```

   This installs `pcsm` into your `GOBIN` directory.

1. Add `GOBIN` to your `PATH`. This makes `pcsm` a global command in your terminal.

## Next steps

[Configure authentication](https://docs.percona.com/percona-clustersync-for-mongodb/install/authentication.md)
