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.

--untracked inverts the question: the files kapi can read that NO collection tracks. That is what a surface added since the recipe was written looks like: governed by nothing, and invisible to every listing that starts from the collections. Review it and declare what belongs; like an untracked file in a version-control status, it is reported and never adopted.

In a server-connected project (a recipe with a bowrain: 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 kapi ls --untracked

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
--color stringautocolorize output: auto, always, never
--jq stringfilter JSON output through a jq expression (implies --json)
--json boolfalseOutput in JSON format
--output-format stringOutput 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
--text boolfalseOutput in text format (default)
--untracked boolfalselist readable files no collection tracks

← Back to the Command Reference