Skip to content
Talk to our solutions team

Build & Spec

Code generation, the YAML spec toolchain, dependencies, i18n, entity conversion. Captured from kis --help, so this matches the binary rather than describing it.

runs cli in code generation mode

kis code [command]
SubcommandPurpose
automationruns the meta automation code generation commands
chunkStructure-aware code chunks (the RAG ingestion unit)
componentruns the meta component code generation commands
formruns the meta form code generation commands
formcontainerruns the meta formcontainer code generation commands
formflowruns the meta formflow code generation commands
generate-routes-jsgenerate javascript index js from routes yaml
getruns the meta app code generation commands
indexChunk code, embed the chunks, and store them in a vector store
json2entityruns the json to entity parser
jsonschema2entityruns the json schema to entity parser
metricsPoint-in-time structural metrics (complexity, graph shape, aggregates)
pageruns the meta page code generation commands
parseParse a file into lib-code’s structural model (units, imports, symbols)
pluginruns the meta plugin code generation commands
postman2apiruns the postman to api collection parser
postman2atcruns the postman to ATC-test-case parser
readRead exact code by unit name or line range (how a retrieval hit is resolved)
retrieveSemantic search over an index (embed the query, return ranked chunks)
searchStructural search (by kind/name, calls, comments, or a raw tree-sitter query)
symbolsPrint a file’s symbol outline (units, depth-annotated)
update-portsconfigure ports on product’s apps
update-routesauto generate routes based on views
websiteruns the meta website code generation commands
workflowruns the meta workflow code generation commands

runs the meta automation code generation commands

kis code automation [flags]
FlagPurpose
-f, --file stringfile name to use
-k, --key stringtemplate@version:path
-p, --path stringpath of template file to use
-t, --template stringtemplate to use
-v, --version stringversion to use

Chunk code at structural boundaries — never splitting a unit mid-body, keeping each unit with its signature/doc and enclosing context. This is what you embed.

kis code chunk <file|dir> [flags]
FlagPurpose
-j, --jsonemit chunks as JSON
-s, --strategy stringunit

runs the meta component code generation commands

kis code component [flags]
FlagPurpose
-f, --file stringfile name to use
-k, --key stringtemplate@version:path
-p, --path stringpath of template file to use
-t, --template stringtemplate to use
-v, --version stringversion to use

runs the meta form code generation commands

kis code form [flags]
FlagPurpose
-f, --file stringfile name to use
-k, --key stringtemplate@version:path
-p, --path stringpath of template file to use
-t, --template stringtemplate to use
-v, --version stringversion to use

runs the meta formcontainer code generation commands

kis code formcontainer [flags]
FlagPurpose
-f, --file stringfile name to use
-k, --key stringtemplate@version:path
-p, --path stringpath of template file to use
-t, --template stringtemplate to use
-v, --version stringversion to use

runs the meta formflow code generation commands

kis code formflow [flags]
FlagPurpose
-f, --file stringfile name to use
-k, --key stringtemplate@version:path
-p, --path stringpath of template file to use
-t, --template stringtemplate to use
-v, --version stringversion to use

generate javascript index js from routes yaml

kis code generate-routes-js [flags]
FlagPurpose
-d, --dest stringdestination folder (default ”./src/routes/“)
-p, --path stringpath of template file to use (default ”./src/routes/routes.yaml”)

runs the meta app code generation commands

kis code get [flags]
FlagPurpose
-k, --context stringcontext to use, instead of default context (default “default”)
-d, --dest stringdestination folder
-i, --input stringfile path of input params in yaml format
-n, --name stringtemplate name to retrieve
-p, --provider stringtemplate provider, default brahma, fs is also supported (default “brahma”)
-s, --src stringsource folder to load the template from, applicable only when provider is fs
-t, --type stringtemplate type to look up. Valid values: app
-v, --version stringversion to use

Walk a path, chunk each file structurally (lib-code), embed each chunk, and upsert {vector, content, provenance} into a vector store (lib-ai).

Offline quick start (no model, no DB): kis code index ./pkg —save idx.json kis code retrieve “where do we validate edits” —load idx.json

Real embeddings + persistent store: kis code index ./pkg —provider openai —store pgvector://user:pw@localhost:5432/db kis code retrieve ”…” —provider openai —store pgvector://user:pw@localhost:5432/db

kis code index <file|dir> [flags]
FlagPurpose
-s, --strategy stringchunk strategy: unit

this will take a uri as input and get the json from the url/file given and generate an entity out of the given json file

kis code json2entity [flags]
FlagPurpose
-d, --destination stringname of destination file for entity generation (default “entity.yaml”)
-e, --entity stringname of entity to be generated (default “jsonentity”)
-j, --jsoninput stringlink to file or file path for input json (required)

this will take a uri as input and get the jsonschema from the url/file given and generate an entity out of the given jsonschema file

kis code jsonschema2entity [flags]
FlagPurpose
-d, --destination stringname of destination file for entity generation (default “entity.yaml”)
-e, --entity stringname of entity to be generated (default “jsonentity”)
-j, --jsoninput stringlink to file or file path for input json (required)

Point-in-time structural metrics (complexity, graph shape, aggregates)

kis code metrics <file|dir> [flags]
FlagPurpose
-j, --jsonemit metrics as JSON

runs the meta page code generation commands

kis code page [flags]
FlagPurpose
-f, --file stringfile name to use
-k, --key stringtemplate@version:path
-p, --path stringpath of template file to use
-t, --template stringtemplate to use
-v, --version stringversion to use

Parse a source file with tree-sitter and print its structural model. Reads stdin when no file is given.

kis code parse <file> [flags]
FlagPurpose
-j, --jsonemit the full model as JSON

runs the meta plugin code generation commands

kis code plugin [flags]
FlagPurpose
-f, --file stringfile name to use
-k, --key stringtemplate@version:path
-p, --path stringpath of template file to use
-t, --template stringtemplate to use
-v, --version stringversion to use

this will take a postman api as an input and parse through each folder/request to create individual folders/api reqests collection files inside desination path provided

kis code postman2api [flags]
FlagPurpose
-d, --dest stringdestination folder for ATC test cases generation (default ”./api”)
-n, --name stringcustom name for root folder
-t, --timeout stringcustom timeout to wait for api information from postman link provided (default “2m”)
-u, --upload stringpostman collection API link (required)

this will take a postman api as an input and parse through each folder/request to create individual folders/atc yaml test cases inside desination path provided

kis code postman2atc [flags]
FlagPurpose
-d, --dest stringdestination folder for ATC test cases generation (default ”./tests/functional”)
-n, --name stringcustom name for root folder
-t, --timeout stringcustom timeout to wait for api information from postman link provided (default “2m”)
-u, --upload stringpostman collection API link (required)

Given provenance (a file + a unit/lines, e.g. from kis code retrieve), print the exact code.

kis code read <file> [flags]
FlagPurpose
-L, --lines stringline range A:B (1-based, inclusive)
-u, --unit stringunit name (or qualified name) to print

Semantic search over an index (embed the query, return ranked chunks)

kis code retrieve <query...> [flags]
FlagPurpose
-j, --jsonemit results as JSON
-k, --top intnumber of results (default 5)

Find code by structure, not text. Examples: kis code search ./pkg —kind function —name ‘Handle*’ kis code search ./pkg —calls dangerousFn kis code search ./pkg —raw ‘(type_spec name:(type_identifier)@n type:(struct_type))@struct’

kis code search <file|dir> [flags]
FlagPurpose
-j, --jsonemit matches as JSON

Print a file’s symbol outline (units, depth-annotated)

kis code symbols <file> [flags]
FlagPurpose
-j, --jsonemit outline as JSON

auto confugures the ports in the apps running inside the product

kis code update-ports [flags]
FlagPurpose
-k, --context stringname of the context to use to login (default “default”)
-p, --path stringlocation to the vite config file to configure the port

auto generates js route files based one for each file that is present in the views source dir

kis code update-routes [flags]
FlagPurpose
-d, --dest stringlocation of routes js files destination folder (default ”./src/routes/“)
-r, --route stringlocation where the template is to be saved (default ”./src/routes/routes.yaml”)
-p, --src stringlocation of the views from which the paths are to be generated (default ”./src/views/“)

runs the meta website code generation commands

kis code website [flags]
FlagPurpose
-k, --key stringtemplate@version
-t, --template stringtemplate to use
-v, --version stringversion to use
-w, --website stringwebsite name

runs the meta workflow code generation commands

kis code workflow [flags]
FlagPurpose
-f, --file stringfile name to use
-k, --key stringtemplate@version:path
-p, --path stringpath of template file to use
-t, --template stringtemplate to use
-v, --version stringversion to use

Commands for working with kis.ai YAML specifications.

Provides validation, linting, scaffolding, and schema operations for Entity, Workflow, Route, Pipeline, Agent, Policy, and other YAML definitions.

Examples: kis spec validate entities/order.yaml kis spec lint entities/ kis spec new entity order kis spec list kis spec schema Entity

kis spec [command]
SubcommandPurpose
generateGenerate artifacts from definitions
lintCheck for best practice violations
listList registered kinds and versions
newScaffold new YAML definitions
schemaView schema definitions
validateValidate YAML files against schemas
FlagPurpose
-v, --verboseVerbose output

Generates various artifacts from YAML definitions and schemas.

Supported generation types: jsonschema - Generate JSON Schema files docs - Generate documentation (markdown)

Examples: kis spec generate jsonschema —output ./schemas kis spec generate jsonschema —kind Entity —output ./schemas kis spec generate docs —output ./docs

kis spec generate <type> [flags]
FlagPurpose
-o, --output stringOutput directory

Checks YAML files for best practice violations beyond schema compliance.

Lint rules enforce naming conventions, required fields, and other best practices that improve consistency and maintainability.

Examples: kis spec lint entities/order.yaml kis spec lint —rules naming-convention,description-required entities/ kis spec lint —list-rules kis spec lint —fix entities/ kis spec lint —ignore description-required entities/

kis spec lint [files...] [flags]

Lists all registered YAML kinds and their versions.

Shows both user-facing definitions (Entity, Workflow, etc.) and internal configuration types.

Examples: kis spec list kis spec list —verbose kis spec list —category definition kis spec list —category config kis spec list —format json

kis spec list [flags]

Creates new YAML definition files from templates.

Supports scaffolding for all registered kinds including Entity, Workflow, Route, Pipeline, Agent, and Policy.

Examples: kis spec new entity order kis spec new entity —template commerce order kis spec new workflow order-approval kis spec new entity -o entities/order.yaml order kis spec new entity —dry-run order

kis spec new <kind> [name] [flags]
FlagPurpose
-o, --output stringOutput file path

Displays schema information for a specified kind.

Shows field definitions, types, and documentation. Can output as human-readable text, JSON Schema, or CUE format.

Examples: kis spec schema Entity kis spec schema Entity —version v2 kis spec schema Entity —format jsonschema kis spec schema Entity —field spec.fields

kis spec schema <kind> [flags]

Validates YAML files against their schemas.

The schema is auto-detected from the file’s ‘kind’ field. Supports validation of single files, multiple files, and directories.

Examples: kis spec validate entities/order.yaml kis spec validate entities/ kis spec validate —cross-ref entities/ workflows/ kis spec validate —version v2 entities/order.yaml kis spec validate —format json entities/

kis spec validate [files...] [flags]

consumes kisai i18n files to generate ftl files

kis i18n [flags]
FlagPurpose
-d, --dir stringlocalisation dir to consume and output ftl files (point to i18n folder in product, defaults to current folder) (default ”.”)

Format-preserving YAML editing with atomic writes, schema validation, and audit trail support.

kis yaml [command]
SubcommandPurpose
deleteDelete a node at a YAML path
getGet a value at a YAML path
setSet a value at a YAML path
validateValidate a YAML file against a schema

Delete removes the node at the specified path. Same atomicity guarantees as set.

kis yaml delete [flags]
FlagPurpose
-v, --verboseEmit progress to stderr

Get returns the scalar value at the specified path, or the YAML representation of a subtree for non-scalar nodes.

kis yaml get [flags]

Set updates the value at the specified path in a YAML file. The file is updated atomically — either fully updated or fully untouched. Idempotent: no-op if the current value already matches.

kis yaml set [flags]
FlagPurpose
-v, --verboseEmit progress to stderr

Validate checks a YAML file against a JSON Schema or CUE schema. Returns exit code 0 on success, 3 if validation errors are found.

kis yaml validate [flags]

process liquid template file

kis liquid [flags]
FlagPurpose
-o, --outputfile stringoutput file path
-t, --template stringliquid template file path
-v, --varFile stringenvironment yaml file path
-c, --vars stringToStringvariables (default [])