Skip to content

Commit

Permalink
document account creation in readme
Browse files Browse the repository at this point in the history
Signed-off-by: John Andersen <johnandersen777@protonmail.com>
  • Loading branch information
johnandersen777 committed Dec 16, 2024
1 parent e1fcd84 commit b44a38d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,15 @@ Useful command for watching the logs:
```sh
sudo journalctl -u millipds.service -f
```

### Create account

```sh
export HANDLE=alice.example.com
export PDS_HOST=$(echo $HANDLE | sed -e 's/^\w*\.//')
millipds util keygen > atproto-private.pem
export REPO_PUBKEY=$(millipds util print_pubkey atproto-private.pem)
millipds util plcgen --handle "${HANDLE}" --pds_host "${PDS_HOST}" --repo_pubkey "${REPO_PUBKEY}" --rotation_key atproto-private.pem --genesis_json atproto-genesis.json | tee atproto-did-plc.txt
export DID_PLC=$(cat atproto-did-plc.txt)
millipds account create "${DID_PLC}" "${HANDLE}" --signing_key atproto-private.pem
```

0 comments on commit b44a38d

Please sign in to comment.