Skip to main content

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

  • codika CLI installed and authenticated
  • A use case folder with a documents/ subfolder containing stage markdown files
  • A project to deploy to (via project.json or PROJECT_ID in config.ts)

Document folder structure

Files must follow the pattern {stage}_{name}.md: Not all stages are required — the CLI uploads whichever stages exist.

Command

Arguments

Options

What happens on deploy

  1. Scans documents/ for files matching {1,2,3,4}_*.md
  2. For each file: derives title from filename, extracts summary from first paragraph (max 200 chars)
  3. Resolves project ID: --project-id > project.json > config.ts
  4. Uploads all documents to the platform in a single API call
  5. 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_history collection

Examples

Output

Exit codes