> 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/11.-user-state-transition.md).

# 11. User state transition

User should perform user state transition to receive reputation and do further actions in the protocol.

```bash
npx ts-node cli/index.ts userStateTransition \
    -x $UNIREP_CONTRACT_ADDRESS  \
    -d $USER_PRIVATE_KEY  \
    -id $USER_IDENTITY 
```

{% hint style="info" %}
See [cli/userStateTransition](/unirep/package/cli/user-state-transition.md) for more `userStateTransition` options
{% endhint %}

If user performs user state transition successfully, the message will be printed:

```
User transitioned from epoch 1 to epoch 2
```
