Назад към всички

cli

// Use the pdsx CLI for ATProto record operations. Requires auth for writes, supports batch operations via stdin.

$ git log --oneline --stat
stars:7
forks:1
updated:February 18, 2026
SKILL.mdreadonly
SKILL.md Frontmatter
namecli
descriptionUse the pdsx CLI for ATProto record operations. Requires auth for writes, supports batch operations via stdin.

pdsx CLI

Use uvx pdsx (or uv run pdsx for local dev) for ATProto record operations.

Authentication

Reads don't need auth, just -r/--repo. Writes need --handle and --password:

# reads - no auth
uvx pdsx -r someone.bsky.social ls app.bsky.feed.post

# writes - auth required
uvx pdsx --handle you.bsky.social --password xxxx-xxxx create app.bsky.feed.post text='hello'

You can also set env vars: ATPROTO_HANDLE, ATPROTO_PASSWORD

Commands

CommandAliasesDescription
listlslist records in a collection
getcatget a specific record
createtouch, addcreate record(s)
updateeditupdate record(s)
deletermdelete record(s)
upload-blob-upload image/video
whoamime, identityshow authenticated identity

Examples

# list posts from someone
uvx pdsx -r zzstoatzz.io ls app.bsky.feed.post

# get a specific post
uvx pdsx get at://did:plc:xxx/app.bsky.feed.post/abc123

# get someone's profile
uvx pdsx -r zzstoatzz.io get app.bsky.actor.profile/self

# create a post
uvx pdsx --handle you.bsky.social --password $APP_PASSWORD create app.bsky.feed.post text='hello from pdsx'

# check who you're authenticated as
uvx pdsx --handle you.bsky.social --password $APP_PASSWORD whoami

# delete a post
uvx pdsx --handle you.bsky.social --password $APP_PASSWORD rm at://did:plc:xxx/app.bsky.feed.post/abc123

Batch Operations

Pipe JSONL to stdin for batch operations:

# batch create
echo '{"text":"post 1"}
{"text":"post 2"}' | uvx pdsx --handle ... create app.bsky.feed.post

# batch delete
echo 'at://did:plc:xxx/app.bsky.feed.post/abc123
at://did:plc:xxx/app.bsky.feed.post/def456' | uvx pdsx --handle ... rm

# batch update (JSONL with uri field)
echo '{"uri":"at://...","text":"updated text"}' | uvx pdsx --handle ... update

Output Formats

Use -o/--output for different formats:

uvx pdsx -r someone.bsky.social ls app.bsky.feed.post -o json
uvx pdsx -r someone.bsky.social ls app.bsky.feed.post -o yaml
uvx pdsx -r someone.bsky.social ls app.bsky.feed.post -o table
uvx pdsx -r someone.bsky.social ls app.bsky.feed.post -o compact  # default for list

Common Collections

CollectionPurpose
app.bsky.feed.postposts
app.bsky.actor.profileprofile (rkey is self)
app.bsky.feed.likelikes
app.bsky.feed.repostreposts
app.bsky.graph.followfollows