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"
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 addFlags
| Flag | Type | Default | Description |
|---|---|---|---|
| --color | string | auto | colorize output: auto, always, never |
| --format, -f | string | file format (e.g. html, json); auto-detected if omitted | |
| --jq | string | filter JSON output through a jq expression (implies --json) | |
| --json | bool | false | Output in JSON format |
| --output-format | string | Output format: text (alias: table), json, yaml | |
| --project, -p | string | path to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted) | |
| --text | bool | false | Output in text format (default) |
← Back to the Command Reference