Command-line interface for Kontent.ai.
Warning
Under active development. The command surface is incomplete and may change between releases. More commands are added incrementally. Breaking changes may occur.
Important
Looking for the previous CLI? The content-migration and environment
backup/restore commands from earlier @kontent-ai/cli versions are
deprecated. That functionality now lives in
@kontent-ai/data-ops.
- Node.js LTS or newer
- A Kontent.ai account
Run without installing:
npx @kontent-ai/cli@latest <command>Or install globally to get the kontent command:
npm install -g @kontent-ai/cli
kontent <command>Using @latest ensures you run the newest version.
Most commands require you to be signed in.
kontent login
kontent logoutRun kontent --help for the full, always-current list.
Each command supports --help for its own options.
--logLevel,-ll— detail level:none,standard(default),verbose--verbose— shortcut for--logLevel verbose--configFile— path to a JSON file with CLI parameters--help,-h/--version,-v
Options can also be supplied via KONTENT_* environment variables.
The CLI collects anonymous usage data. See TELEMETRY.md for details and opt-out.
Contributions are welcome. See CONTRIBUTING.md for details.
Distributed under the MIT License. See LICENSE.md.