cute 1.0.49
See the version list below for details.
dotnet tool install --global cute --version 1.0.49
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local cute --version 1.0.49
#tool dotnet:?package=cute&version=1.0.49
nuke :add-package cute --version 1.0.49
Contentful Update Tool & Extractor
Introduction
cute is a stand-alone cross-platform command line interface (CLI) that allows bulk downloads, editing, AI generation and uploads to and from a Contentful space and supports the following :-
- CSV - Contentful → Comma delimeted files → Contentful
- TSV - Contentful → Tab delimeted files → Contentful
- Excel - Contentful → Excel xlsx workbook → Contentful
- Json - Contentful → Json → Contentful
- Yaml - Contentful → Yaml → Contentful
You can also generate types for JavaScript or dotnet to keep your project in sync with your content space.
Contentful is a headless content management system (CMS) that allows teams to store, manage and retrieve content for websites and apps.
Installation
Firstly, make sure you have the Dotnet SDK 8.0 package installed.
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
Then:
On windows you may have to close and re-open the command line propt (or Windows Terminal).
Install the cute cli by typing.
dotnet tool install -g cute
To test whether the installation worked
Simply type
cute
This will display the cute help. You are ready to go! 🚀
Getting Help
cute --help
Logging into Contentful
cute login
Display space summary
cute info
Downloading data
The default format is 'excel' so the following is equivelent.
cute download --content-type <contentType>
cute download --content-type <contentType> --format excel
For comma seperated values:
cute download --content-type <contentType> --format csv
For tab seperated 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)
Uploading/synchronizing data
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" powershel 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 containg 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
For generating strong Javascript or Dotnet types
You can generate stronly typed classes for both c# and TypeScript usinh 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
Content generation using OpenAI
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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
2.0.45 | 108 | 12/16/2024 |
2.0.44 | 130 | 12/13/2024 |
2.0.43 | 106 | 12/11/2024 |
2.0.42 | 90 | 12/9/2024 |
2.0.41 | 102 | 12/6/2024 |
2.0.40 | 104 | 12/5/2024 |
2.0.39 | 114 | 12/4/2024 |
2.0.38 | 99 | 12/2/2024 |
2.0.37 | 104 | 11/27/2024 |
2.0.36 | 107 | 11/25/2024 |
2.0.35 | 100 | 11/22/2024 |
2.0.34 | 99 | 11/21/2024 |
2.0.33 | 100 | 11/19/2024 |
2.0.32 | 116 | 11/15/2024 |
2.0.31 | 94 | 11/15/2024 |
2.0.30 | 124 | 10/25/2024 |
2.0.29 | 117 | 10/17/2024 |
2.0.28 | 110 | 10/17/2024 |
2.0.27 | 113 | 10/15/2024 |
2.0.26 | 110 | 10/14/2024 |
2.0.25 | 95 | 10/13/2024 |
2.0.24 | 104 | 10/13/2024 |
2.0.23 | 104 | 10/13/2024 |
2.0.22 | 106 | 10/13/2024 |
2.0.21 | 113 | 10/12/2024 |
2.0.20 | 119 | 10/12/2024 |
2.0.19 | 106 | 10/12/2024 |
2.0.18 | 106 | 10/10/2024 |
2.0.16 | 150 | 10/1/2024 |
2.0.15 | 117 | 9/30/2024 |
2.0.14 | 114 | 9/30/2024 |
2.0.13 | 112 | 9/30/2024 |
2.0.12 | 121 | 9/30/2024 |
2.0.11 | 89 | 9/29/2024 |
2.0.10 | 102 | 9/29/2024 |
2.0.9 | 94 | 9/29/2024 |
2.0.8 | 106 | 9/29/2024 |
2.0.6 | 103 | 9/25/2024 |
2.0.5 | 91 | 9/25/2024 |
2.0.3 | 102 | 9/20/2024 |
2.0.2 | 127 | 9/13/2024 |
2.0.1 | 116 | 9/12/2024 |
1.0.55 | 155 | 8/25/2024 |
1.0.54 | 153 | 8/25/2024 |
1.0.53 | 140 | 8/25/2024 |
1.0.52 | 147 | 8/22/2024 |
1.0.51 | 148 | 8/22/2024 |
1.0.50 | 140 | 8/21/2024 |
1.0.49 | 154 | 8/21/2024 |
1.0.48 | 140 | 8/21/2024 |
1.0.47 | 133 | 8/15/2024 |
1.0.46 | 130 | 8/14/2024 |
1.0.45 | 120 | 8/11/2024 |
1.0.44 | 107 | 8/7/2024 |
1.0.43 | 91 | 8/6/2024 |
1.0.42 | 87 | 8/6/2024 |
1.0.41 | 86 | 8/6/2024 |
1.0.40 | 99 | 8/6/2024 |
1.0.39 | 120 | 7/29/2024 |
1.0.38 | 111 | 7/28/2024 |
1.0.37 | 121 | 7/28/2024 |
1.0.36 | 111 | 7/23/2024 |
1.0.35 | 109 | 7/13/2024 |
1.0.34 | 102 | 7/13/2024 |
1.0.33 | 108 | 7/13/2024 |
1.0.32 | 108 | 7/12/2024 |
1.0.31 | 99 | 7/11/2024 |
1.0.30 | 115 | 6/14/2024 |
1.0.29 | 113 | 6/13/2024 |
1.0.28 | 103 | 6/13/2024 |
1.0.0 | 112 | 6/13/2024 |