Skip to main content

When to use

  • After deploying a use case that requires integrations (OpenAI, Supabase, etc.)
  • When setting up a new organization with required API keys
  • When rotating or updating integration credentials
  • When checking which integrations are connected

Prerequisites

  • API key with integrations:manage scope
  • For process instance integrations: project.json with devProcessInstanceId

Subcommands


codika integration set

Creates an integration by encrypting secrets client-side and sending them to the platform.

Arguments

Options

Secret input priority

Secrets are merged with this priority (highest wins):
  1. --secret KEY=VALUE flags
  2. --secrets '{"KEY":"VALUE"}' JSON string
  3. --secrets-file path.json file

Examples

Custom integrations (cstm_*)

Custom integrations require a schema defining their fields and n8n credential mapping. The CLI resolves this schema automatically:
  1. Auto-extraction (recommended): When --path points to a use case folder (or you run from one), the CLI reads config.ts and extracts the matching schema from the customIntegrations array. No separate file needed.
  2. Explicit file: Pass --custom-schema-file with a JSON file containing the CustomIntegrationSchema.

OAuth integrations

OAuth-based integrations (Gmail, Teams, Slack, etc.) cannot be configured from the CLI. The command will display the dashboard URL instead:

codika integration list

Lists integrations and their connection status.

Options

Examples


codika integration delete

Deletes an integration. Uses two-phase deletion by default — first shows dependent processes, then deletes with --confirm.

Arguments

Options

Examples


codika integration schema

Fetches the n8n credential schema for a given credential type. Use this to discover which fields are required when creating a custom integration with any n8n credential type.

Arguments

Options

Examples

Use with custom integrations

When you need a custom integration that maps to a specific n8n credential type (e.g., twilioApi instead of httpHeaderAuth), use schema to discover the required fields, then define your n8nCredentialMapping accordingly:

Common recipes

Set up AI provider for an organization

Set up Supabase for a process instance

Full deployment + integration flow

Authentication

All integration commands require an API key with the integrations:manage scope. The standard authentication chain applies:
  1. --api-key flag (highest priority)
  2. CODIKA_API_KEY environment variable
  3. Active profile from codika login

Exit codes