> For the complete documentation index, see [llms.txt](https://unirep.gitbook.io/unirep/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unirep.gitbook.io/unirep/getting-started/start-with-cli-commands/2.-deploy-unirep-contract.md).

# 2. Deploy Unirep contract

Deploy the UniRep smart contract with a private key.

```bash
npx ts-node cli/index.ts deploy -d $USER_PRIVATE_KEY
```

{% hint style="info" %}
**NOTE:** `-d` is the deployer's private key.

See: [cli/deploy](/unirep/package/cli/deploy-unirep-contract.md) for more `deploy` options.
{% endhint %}

Then the Unirep contract address will be printed:

```bash
Unirep: 0x0165878A594ca255338adfa4d48449f69242Eb8F
```

* Then we use the Unirep contract's address to interact with.
* Export contract address to the environment:

```bash
export UNIREP_CONTRACT_ADDRESS=0x0165878A594ca255338adfa4d48449f69242Eb8F
```
