When to use
- Upload or deploy use case documents to the platform
- After creating or updating stage markdown files in
documents/ - When deploying documentation alongside a use case
Prerequisites
codikaCLI installed and authenticated- A use case folder with a
documents/subfolder containing stage markdown files - A project to deploy to (via
project.jsonorPROJECT_IDinconfig.ts)
Document folder structure
{stage}_{name}.md:
Not all stages are required — the CLI uploads whichever stages exist.
Command
Arguments
Options
What happens on deploy
- Scans
documents/for files matching{1,2,3,4}_*.md - For each file: derives title from filename, extracts summary from first paragraph (max 200 chars)
- Resolves project ID:
--project-id>project.json>config.ts - Uploads all documents to the platform in a single API call
- Reports per-stage results (document ID, version, status)
Document versioning
Documents are versioned on the platform:- First upload for a stage creates version
1.0.0 - Subsequent uploads increment the minor version (e.g.,
1.0.0->1.1.0) - Each document version is tracked in the platform’s
version_historycollection