Skip to content

Installation

  • Node.js 18 or later
  • A Contentful space with a management token

ctkit is split into two packages:

PackagePurpose
@ctkit/cliThe CLI tool — run commands like ctkit push, ctkit generate, ctkit migrate
@ctkit/coreTypes, constants, and validators — import these in your schema files

Installing @ctkit/cli automatically installs @ctkit/core as a dependency, so a single install gives you everything.

You can install ctkit as a project dependency (recommended) or globally.

Terminal window
npm install @ctkit/cli

Then run it with npx ctkit, pnpm ctkit, or yarn ctkit.

Terminal window
npm install -g @ctkit/cli
Terminal window
ctkit --version

You should see the installed version printed to stdout. If you installed locally, use npx ctkit --version.

Schema files import types, constants, and validators from @ctkit/core:

import { ContentTypeSchema, FieldType, validators } from '@ctkit/core';