Skip to main content

kapi formats

kapi formats [--ops [FORMAT]]

List all file formats that can be read and written.

Use --mime or --ext to filter by MIME type or file extension.

--ops says what a format takes of a change set (kapi apply): each content operation it supports, with the forms, code types and attributes it writes, and whether it keeps a document's translations in one file. Name a format to describe it alone, as MCP describe_format does; with no name every format kapi can edit is listed.

Commandformats
Groupadvanced
Try it

Runs in your browser against a small sample file. Edit the command before running, or press Run to execute it as shown.

kapi formats
Flags
FlagTypeDefaultDescription
--extstringfilter by file extension (e.g., .docx)
--mimestringfilter by MIME type (e.g., text/html)
--opsboolfalsesay what each format, or the one named, takes of a change set
More examples
kapi formats --ext .json
kapi formats --mime text/html
kapi formats --ops html --json
kapi formats --ops

← Back to the Command Reference