Gå til hovedinnhold

kapi add

kapi add <pattern> [pattern...]

Add file patterns to this project's content so kapi knows which files to process. Patterns support ** for recursive matching. Format is auto-detected from the extension unless --format is given.

kapi add "src//.html" kapi add "locales/.json" --format json kapi add "src//.html" "content/**/.md"

Commandadd
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 add
Flags
FlagTypeDefaultDescription
--colorstringautocolorize output: auto, always, never
--format, -fstringfile format (e.g. html, json); auto-detected if omitted
--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)
--textboolfalseOutput in text format (default)

← Back to the Command Reference