Use the Kapso CLI to bring workflows and functions into a local repository. You can edit the generated JSON directly, or useDocumentation Index
Fetch the complete documentation index at: https://docs.kapso.ai/llms.txt
Use this file to discover all available pages before exploring further.
@kapso/workflows to build workflow definitions with JavaScript or TypeScript.
Start a local repo
kapso link binds the current directory to one Kapso project. kapso pull downloads source files for workflows and functions.
Repository layout
After pulling, the repo includes a project binding, sync metadata, and one directory per source object..kapso/remote-map.json file stores the last pulled remote state, so keep it in the repo when multiple people push changes.
Build with code
kapso pull creates a workflow.js file next to definition.json. Edit that file when you want code to become the source of truth for the workflow. You can also create workflow.ts manually if you prefer TypeScript.
workflow.js file is unchanged, kapso push uses the existing workflow.yaml and definition.json files. Once you edit workflow.js or add workflow.ts, kapso push compiles that code before uploading.
Push changes
Preview changes before writing to Kapso:npx kapso pull first.
Build with AI
For AI-assisted edits, point your coding assistant at the workflow directory and ask it to editworkflow.js or workflow.ts. Keep the generated definition.json if you want to review diffs, or ignore it if your team prefers code as the source.
Kapso docs are available to AI tools through the MCP endpoint:
Sync behavior
The CLI protects local and remote work during sync:kapso pullrefuses to overwrite dirty local files.kapso pushchecks the last pulled remote version before updating existing objects.- Remote-only workflows and functions are reported, not deleted.
- Local-only workflows and functions are created on push.

