Skip to content

tg string create

Create a string

Create a string from a file, standard input, or $EDITOR.

Pass a file to read it. Pass “-” to read standard input. Without a file, tg opens $EDITOR when run in a terminal and otherwise reads standard input.

When reading from standard input or $EDITOR, set –filename. Contents must be valid UTF-8 and no larger than 100 MiB. Run “tg auth login” first.

tg string create [<file>] [flags]
-d, --description string String description
-f, --filename string Filename (default: source file's name)
-h, --help help for create
--account string Account handle or DID
--appview string Appview URL (default "https://bobbin.klbr.net")
--config string Config file (default: $XDG_CONFIG_HOME/tg/config.toml)
--json Print JSON output