···321321{"version":"0.2.2-beta.2"}
322322```
323323324324-#### Generate an invite code
324324+#### Obtain your PDS admin password
325325+326326+Your PDS admin password should be in your `pds.env` file if you used the installer script.
327327+328328+**For example:**
329329+330330+```bash
331331+$ source /pds/pds.env
332332+$ echo $PDS_ADMIN_PASSWORD
333333+a7b5970b6a5077bb41fc68a26d30adda
334334+```
335335+#### Generate an invite code for your PDS
325336326337By default, your PDS will require an invite code to create an account.
327338328339You can generate a new invite code with the following command:
329340330341```bash
331331-curl -X POST https://<PDS_HOSTNAME>/xrpc/com.atproto.server.createInviteCode \
332332- -u "admin:<PDS_ADMIN_PASSWORD>" \
333333- -H "Content-Type: application/json" \
334334- -d '{"useCount": 1}'
342342+PDS_HOSTNAME="example.com"
343343+PDS_ADMIN_PASSWORD="<YOUR PDS ADMIN PASSWORD>"
344344+345345+curl --silent \
346346+ --show-error \
347347+ --request POST \
348348+ --user "admin:${PDS_ADMIN_PASSWORD}" \
349349+ --header "Content-Type: application/json" \
350350+ --data '{"useCount": 1}' \
351351+ https://${PDS_HOSTNAME}/xrpc/com.atproto.server.createInviteCode
335352```
353353+354354+**Note:** the `useCount` field specifies how many times an invite code can be used
336355337356### Connecting to your server
338357