Skip to content

CLI command

tinbox draft create

Create a draft (resolves inbox from --thread if --inbox omitted)

Usage

sh
tinbox draft create --thread <thread> --inbox <inbox> --to <to> --cc <cc> --subject <subject> --text <text> --html <html> --in-reply-to <in-reply-to> [--stdin] --body-file <body-file> [--markdown]

Flags

NameTypeRequiredDefaultDescription
--threadstringyes—thread to reply within
--inboxstringyes—inbox (required if no --thread)
--tostringyes—recipient (repeatable)
--ccstringyes—cc (repeatable)
--subjectstringyes—subject
--textstringyes—plain-text body
--htmlstringyes—HTML body
--in-reply-tostringyes—Message-ID being replied to
--stdinbooleanno—read body from stdin (pipe-friendly for agents)
--body-filestringyes—read body from a file
--markdownbooleanno—treat body as markdown and convert to HTML