grain.social is a photo sharing platform built on atproto.
at main 1.1 kB view raw
1# pdsadmin is a tool for managing the Personal Data Store (PDS) server. 2# But at the end of the day, it's just a bash script that makes curl requests 3# Even worse, it does all sorts of annoying checks that don't apply to OSX 4# So I have reversed engineered the requests I cared about and put them here 5 6# You can copy and paste these into your terminal, 7# Remove the underscores before the curl command 8# Replace the variables with your own values 9 10PDS_ENV_FILE=${PDS_ENV_FILE:-".env"} 11source "${PDS_ENV_FILE}" 12 13export DID="" 14 15# make an invite code 16# curl \ 17# --fail \ 18# --silent \ 19# --show-error \ 20# --request POST \ 21# --header "Content-Type: application/json" \ 22# --user "admin:${PDS_ADMIN_PASSWORD}" \ 23# --data '{"useCount": 1}' \ 24# "https://${PDS_HOSTNAME}/xrpc/com.atproto.server.createInviteCode" 25 26# delete an account 27# curl \ 28# --fail \ 29# --silent \ 30# --show-error \ 31# --request POST \ 32# --header "Content-Type: application/json" \ 33# --user "admin:${PDS_ADMIN_PASSWORD}" \ 34# --data "{\"did\": \"${DID}\"}" \ 35# "https://${PDS_HOSTNAME}/xrpc/com.atproto.admin.deleteAccount"