format

Usage

.format [format]

Description

The format command sets the format mode for the CLI. The default format mode is unicode.

FormatDescription
asciiASCII characters to draw a table
csvComma Separated Values (CSV)
expandedPostgreSQL Expanded Format
htmlHyperText Markup Language (HTML)
jsonJavaScript Object Notation (JSON)
jsonlJSON Lines (JSONL)
markdownMarkdown
plainColumn based layout
psqlPostgreSQL Standard Format
sqliteSQLite formatted table
tsvTab Separated Values (TSV)
unicodeUnicode characters to draw a table
xmlExtensible Markup Language (XML)
yamlYAML Ain’t Markup Language (YAML)

Examples

Show the current format mode:

.format

Set the format mode to ascii:

.format ascii

Set the format mode to unicode:

.format unicode

Demonstration