Skip to content

Editing a status

taibai edit replaces the text of one of your existing statuses.


Basic edit

Pass the status URL or ID followed by the new text:

taibai edit 109031952222346765 "Corrected text."
taibai edit https://mastodon.social/@you/109031952222346765 "Corrected text."

The URL of the updated status is printed on success:

Edited: https://mastodon.social/@you/109031952222346765

Reading from a file

Use --file to supply the replacement text from a file:

taibai edit 109031952222346765 --file revised.txt

--file is mutually exclusive with a positional text argument.


Reading from stdin

Pass - as the text argument to read from standard input:

echo "New text." | taibai edit 109031952222346765 -

Content warning

Replace or add a content warning with --cw:

taibai edit 109031952222346765 "Updated body." --cw "New warning"

Sensitive media

Mark attached media as sensitive with --sensitive:

taibai edit 109031952222346765 "Updated caption." --sensitive

JSON output

Pass --json to dump the edited status as JSON instead of printing its URL:

taibai edit 109031952222346765 "New text." --json
taibai edit 109031952222346765 "New text." --json | jq '.url'

Options reference

Option Short Default Description
STATUS_ID Status URL or bare numeric ID
TEXT Replacement text; use - to read from stdin
--file Read replacement text from a file (exclusive with TEXT)
--cw Content warning / subject line
--sensitive off Mark attached media as sensitive
--json off Dump the edited status as JSON instead of printing its URL
--profile -p default Profile name (TAIBAI_PROFILE env var)