Skip to main content

What is a use case?

A use case is Codika’s deployment unit. It is a folder on disk that contains everything needed to deploy one or more n8n workflows as a single automation to the Codika platform. When deployed, a use case becomes a Process that users can discover, install, and run with their own credentials.

Folder structure

Required files

Optional files

config.ts structure

The config file must export these members:

Configuration fields

Workflow configuration fields

Version management

The version.json file tracks a semantic version:
On each deploy, the CLI:
  1. Reads the current version
  2. Bumps it based on the flag: --patch (default), --minor, or --major
  3. Sends the API version to the platform (X.Y format)
  4. Writes the new version back to version.json

Relationship to platform entities

When you deploy a use case, the platform creates linked records:
See Processes for full details on the deployment lifecycle.