A Contentful Update Tool & Extractor
cute is a cross-platform CLI tool that brings several advanced features and capabilities to working with your content hosted on Contentful.
- Bulk processing capabilities lets you download, modify and upload data in most popular formats including Comma delimited files (CSV), Tab delimited files (TSV), MS-Excel workbooks (XLSX), Javascript Object Notation (JSON) and YAML.
- Input data can be sourced and synced from many external sources including flat files, databases, webAPIs or other popular sources like WikiData.
- Content can be enriched or even generated using popular technologies like OpenAI and Azure AI Translator.
- Deploy cute as a Web Server with OpenTelemetry compliant logging and a service terminal to reflect health, configuration and scheduled tasks.
- Support for structural subtyping through the
typegen
command option which exports TypeScript (TS) interface declarations. This feature is especially useful to keep your JavaScript or .NET projects in sync with your content types. - cute auto-magically "learns" your Contentful space and generates required configuration nodes to enable process automation.
Contentful is a content infrastructure platform that lets you create, manage and distribute content to any platform.
Contentful bills itself as a Content Infrastructure Platform rather than a traditional Content Management System (CMS) that is often no more than a simple web publishing tool.
It aims to transcend traditional Content Management Systems (CMS) by structuring its technology offering around three principals:
- Firstly, by enabling the definition of a content model which is independent from the presentation layer.
- Secondly, if offers a easy-to-use UI to manage content in a collaborative manner.
- Finally, content is served in a presentation independent manner.
For windows (cmd or powershell):
winget install Microsoft.DotNet.SDK.8
Or, on linux and iOS
sudo apt-get update && sudo apt-get install -y dotnet-sdk-8.0
On windows you may have to close and re-open the command line prompt (or Windows Terminal).
Install the cute cli by typing.
dotnet tool install -g cute
Simply type
cute
This will display the cute help. You are ready to go! 🚀
cute --help
cute login
cute info
The default format is 'excel' so the following is equivalent.
cute download --content-type <contentType>
cute download --content-type <contentType> --format excel
For comma separated values:
cute download --content-type <contentType> --format csv
For tab separated values:
cute download --content-type <contentType> --format tsv
For json output:
cute download --content-type <contentType> --format json
For downloading to Yaml:
cute download --content-type <contentType> --format yaml
Typing cute download --help
will list all currently available options and usage
USAGE:
cute download [OPTIONS]
OPTIONS:
-h, --help Prints help information
-c, --content-type Specifies the content type to download data for
-f, --format The output format for the download operation (Excel/Csv/Tsv/Json/Yaml)
You can upload content from a local file to contentful. The local file can be a previously downloaded and updated excel, sdv, tsv, json or yaml file.
Changes are only applied to Contentful if --apply
is specified. By default no changes will be applied so it works a bit like a "what-if" powershell switch without --apply
.
Typing cute upload --help
will sow the full usage and options.
USAGE:
cute upload [OPTIONS]
OPTIONS:
-h, --help Prints help information
-c, --content-type Specifies the content type to download data for
-p, --path The local path to the file containing the data to sync
-f, --format The format of the file specified in '--path' (Excel/Csv/Tsv/Json/Yaml)
-a, --apply Apply and publish all the calculated changes. The default behaviour is to only list the detected changes
You can generate strongly typed classes for both c# and TypeScript using cute
.
USAGE:
cute typegen [OPTIONS]
OPTIONS:
-h, --help Prints help information
-c, --content-type Specifies the content type to generate types for. Default is all
-o, --output The local path to output the generated types to
-l, --language The language to generate types for (TypeScript/CSharp)
-n, --namespace The optional namespace for the generated type
You can generate content using OpenAI in bulk. Prompts are retrieved from your Contentful space. A typical prompt entry has an id, a system message, a prompt, points to a content type and field. Something like :-
Title | EntryField |
---|---|
title | Short text |
SystemMessage | Long text |
MainPrompt | Long text |
ContentTypeId | Short text |
ContentFieldId | Short text |
DESCRIPTION:
Use generative AI to help build drafts of your content.
USAGE:
cute generate [OPTIONS]
OPTIONS:
-h, --help Prints help information
-c, --prompt-content-type The id of the content type containing prompts. Default is 'prompts'
-f, --prompt-field The id of the field that contains the prompt key/title/id. Default is 'title'
-i, --prompt-id The title of the Contentful prompt entry to generate content from
-l, --limit The total number of entries to generate content for before stopping. Default is five
-s, --skip The total number of entries to skip before starting. Default is zero
cute login ...
cute logout ...
cute info
cute profile ...
cute content ...
cute type ...
cute app ...
cute server...
cute report ...
cute version
Log in to Contentful. Run this first.
Option | Description |
---|---|
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--openai-deployment-name, -n | The Azure OpenAI deployment name. |
--openai-endpoint, -a | The Azure OpenAI endpoint. |
--openai-token, -k | The Azure OpenAI Api key. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Log out of contentful.
Option | Description |
---|---|
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--openai-deployment-name, -n | The Azure OpenAI deployment name. |
--openai-endpoint, -a | The Azure OpenAI endpoint. |
--openai-token, -k | The Azure OpenAI Api key. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Display information about a Contentfult space.
Option | Description |
---|---|
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Manage content entries in bulk.
Download Contentful entries to a local csv/tsv/yaml/json/excel file.
Option | Description |
---|---|
--content-type-id, -c | The Contentful content type id. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--format, -f | The output format for the download operation (Excel/Csv/Tsv/Json/Yaml) |
--locale, -l
|
The locale code (eg. 'en') to apply the command to. Default is all. |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--path, -p | The output path and filename for the download operation |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Upload and sync Contentful entries from a local csv/tsv/yaml/json/excel file.
Option | Description |
---|---|
--apply, -a | Apply and publish all the calculated changes. The default behaviour is to only list the detected changes. |
--content-type-id, -c | The Contentful content type id. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--format, -f | The format of the file specified in '--path' (Excel/Csv/Tsv/Json/Yaml) |
--locale, -l
|
The locale code (eg. 'en') to apply the command to. Default is all. |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--match-field, -m | The optional name of the field to match in addition to the entry id. |
--no-banner | Do not display the startup banner or the copyright message. |
--path, -p | The local path to the file containg the data to sync |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Edit Contentful entries in bulk with an optional filter.
Option | Description |
---|---|
--apply, -a | Apply and publish all the required edits. The default behaviour is to only list the detected changes. |
--content-type-id, -c | The Contentful content type id. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--field, -f | The field to update. |
--force | Specifies whether warning prompts should be bypassed |
--locale, -l
|
The locale code (eg. 'en') to apply the command to. |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--replace, -r | The value to update it with. Can contain an expression. |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Find and Replace values in Contentful entries in bulk with an optional filter.
Option | Description |
---|---|
--apply, -a | Apply and publish all the required edits. The default behaviour is to only list the detected changes. |
--content-type-id, -c | The Contentful content type id. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--field, -f | The field to update. |
--find, -i | The text to find. |
--force | Specifies whether warning prompts should be bypassed |
--locale, -l
|
The locale code (eg. 'en') to apply the command to. |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--replace, -r | The value to update it with. Can contain an expression. |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Bulk publish all unpublished Contentful entries.
Option | Description |
---|---|
--content-type-id, -c | The Contentful content type id. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Unpublish all published Contentful entries.
Option | Description |
---|---|
--content-type-id, -c | The Contentful content type id. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Unpublish and delete all Contentful entries.
Option | Description |
---|---|
--content-type-id, -c | The Contentful content type id. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Synchromise data to Contentful from an API.
Option | Description |
---|---|
--apply, -a | Apply and publish all the required edits. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--key, -k | The key of the cuteContentSyncApi entry. |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--use-filecache, -u | Whether or not to cache responses to a local file cache for subsequent calls. |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Synchromise data to Contentful from an API.
Option | Description |
---|---|
--content-type-prefix, -c | The id of the content type containing location data. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--huge-population, -h | The city or town minimum population for large cities |
--input-file, -i | The path to the input file. |
--large-kilometer-radius, -l | The distance in kilometers for large city to nearest location |
--large-population, -n | The city or town minimum population for large cities |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--output-folder, -o | The output folder. |
--password, -p | The password to protect the Zip file with |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--small-kilometer-radius, -m | The distance in kilometers for small city to nearest location |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--upload, -u | Uploads the csv file to Contentful. |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
--zip, -z | Output a zip file instead of a csv. Can be password protected with '--password'. |
Synchronize data to Contentful from a database.
Option | Description |
---|---|
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Generate content using a Large Language Model (LLM).
Option | Description |
---|---|
--apply, -a | Apply and publish all the required edits. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--key, -k | The key of the 'cuteContentGenerate' entry. |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--operation, -o | Specify the generation operation to perform. (GenerateSingle, GenerateParallel, GenerateBatch or ListBatches) |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Test generation of content using a Large Language Model (LLM).
Option | Description |
---|---|
--comparison-operation, -o | The comparison operator to apply to the field. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--deployment-models, -m | The deployment models to test. |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--field-id, -f | The field id to filter on. |
--field-value, -v | The field value to filter on. |
--force | Specifies whether warning prompts should be bypassed |
--key, -k | The key of the 'cuteContentGenerate' entry. |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Translate content using an LLM or Translation Service.
Option | Description |
---|---|
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Generate test data.
Option | Description |
---|---|
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--number, -n | The number of user entries to generate. (default=1000). |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Join multiple content types to a destination content type.
Option | Description |
---|---|
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--entry-id, -i | Id of source 2 entry to join content for. |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--key, -k | The id of the Contentful join entry to generate content for. |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Manage Contentful content types (models).
Automatically scaffold Typescript or c# classes from Contentful.
Option | Description |
---|---|
--content-type, -c | Specifies the content type to generate types for. Default is all. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--language, -l | The language to generate types for (TypeScript/CSharp/Excel). |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--namespace, -n | The optional namespace for the generated type. |
--no-banner | Do not display the startup banner or the copyright message. |
--output, -o | The local path to output the generated types to. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Compare content types across two environments and view with VS Code.
Option | Description |
---|---|
--content-type-id, -c | Specifies the content type id to generate types for. Default is all. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--source-environment-id | Specifies the source environment id to do comparison against |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Clone a content type and its entries between environments.
Option | Description |
---|---|
--content-type-id, -c | Specifies the content type id to generate types for. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--entries-per-batch, -b | Number of entries processed in parallel. |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--publish, -p | Whether to publish the created content or not. Useful if no circular references exist. |
--source-environment-id | Specifies the source environment id. |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Rename a content type including all references to it.
Option | Description |
---|---|
--apply-naming-convention, -a | The id to rename the content type to. |
--content-type, -c | Specifies the content type to generate types for. Default is all. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--new-id, -n | The id to rename the content type to. |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--publish, -p | Whether to publish the created content or not. Useful if no circular references exist. |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Delete a content type and its entries.
Option | Description |
---|---|
--content-type-id, -c | Specifies the content type id to be deleted. |
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Generate a website or app from Contentful.
Generate an app or website based on configuration in Contentful.
Option | Description |
---|---|
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Tools to evaluate the quality the site and of LLM and translation output.
Use deepeval to measure the quality of content generation.
Option | Description |
---|---|
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Measure the quality of translation engine output.
Option | Description |
---|---|
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Check and remediate violations of site naming conventions.
Option | Description |
---|---|
--delivery-token | Your Contentful Content Delivery API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--environment-id, -e | The Contentful environment identifier. See https://www.contentful.com/developers/docs/concepts/multiple-environments/ |
--force | Specifies whether warning prompts should be bypassed |
--log-output | Outputs logs to the console instead of the standard messages. |
--management-token | Your Contentful management API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--no-banner | Do not display the startup banner or the copyright message. |
--preview-token | Your Contentful Content Preview API token. See https://www.contentful.com/developers/docs/references/authentication/ |
--space-id, -s | The Contentful space identifier. See https://www.contentful.com/help/spaces-and-organizations/ |
--verbosity | Sets the output verbosity level. Allowed values are (q)uiet, (m)inimal, (n)ormal, (de)tailed and (di)agnostic. |
Display the current version of the CLI.