Gå til hovedinnhold

kapi ls

kapi ls [path...]

List the files matched by the project's content collections (honoring the exclude list). With --stats, also show per-file block and word counts.

In a server-connected project (a recipe with a server: block, with the bowrain plugin installed) a SYNC column reports each file's pending-push standing ("2 to push" / "synced"), derived from the sync cache.

kapi ls kapi ls src/ kapi ls --stats

Commandls
Groupwork
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 ls
Flags
FlagTypeDefaultDescription
--colorstringautocolorize output: auto, always, never
--jqstringfilter JSON output through a jq expression (implies --json)
--jsonboolfalseOutput in JSON format
--output-formatstringOutput format: text (alias: table), json, yaml
--project, -pstringpath to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted)
--stats, -sboolfalseshow per-file block and word counts
--textboolfalseOutput in text format (default)

← Back to the Command Reference