From 6850e5c4833c1c1e71ec86173d19d4affa481224 Mon Sep 17 00:00:00 2001 From: Rosta Striz Date: Fri, 26 Jan 2024 09:56:00 +0100 Subject: [PATCH] Update README.md --- README.md | 70 +++++++++++++++++-------------------------------------- 1 file changed, 21 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index 391884ba..11c6c931 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,13 @@ It runs in Node.js with ESM support (lts). * [Export](#export) * [Usage](#usage) * [Structure of the Exported Data](#structure-of-the-exported-data) - * [Known Limitations](#known-limitations) * [Import](#import) * [Usage](#usage-1) - * [Known Limitations](#known-limitations-1) + * [Known Limitations](#known-limitations) # Getting Started -We recommend running it with `npx`. +We recommend running data-ops with `npx`. Use `-h` or `--help` anytime to get information about available commands and their options. ```bash npx @kontent-ai/data-ops --help @@ -35,10 +34,10 @@ yarn dlx @kontent-ai/data-ops --help # help for a specific command npx @kontent-ai/data-ops --help -# you can also install the package globally or locally +# you can also install the package globally, or locally npm i @kontent-ai/data-ops -g -# with the package installed, you can call i like this +# with the package installed, you can call i as follows data-ops --help ``` @@ -51,7 +50,7 @@ All options (including options for commands) can be provided in three different # Commands -The tool usage is based on commands, provided in the following format: +The tool usage is based on commands provided in the following format: ```bash npx @kontent-ai/data-ops @@ -72,7 +71,7 @@ To see all supported parameters, run `npx @kontent-ai/data-ops export --help`. ### Structure of the Exported Data The exported `.zip` package contains a `.json` file for each exported entity and a `metadata.json` file with additional information. -Format of all the entities is exactly the same as what the [Management API](https://kontent.ai/learn/docs/apis/openapi/management-api-v2/) returns. +Format of all the entities is compatible with the output of the [Management API](https://kontent.ai/learn/docs/apis/openapi/management-api-v2/). > [!TIP] > If you need the data in a different format, you can process the `.zip` data with a variety of other tools to transform it as per your requirements. @@ -102,33 +101,11 @@ You can check out exported data of an example project in [the data for integrati > > To get more information about the parameters or what other parameters are available, run `npx @kontent-ai/data-ops export --help`. -### Known Limitations - -#### Missing Entities - -Sitemap and [asset type](https://kontent.ai/learn/docs/assets/asset-organization#a-set-up-the-asset-type) entities are not supported by the Management API and thus are not exported. - -#### New Versions of Published Variants - -With the current version of the Management API, -it is not possible to read the published version of an item variant that is published and has a [new version](https://kontent.ai/learn/docs/workflows-publishing/create-new-versions) at the same time. -As a result, the export will only contain data of the latest versions and not the published ones. -Published language variants that don't exist in any other workflow step are exported correctly. - -#### Language Variants Scheduled For Publishing - -With the current version of the Management API, -it is not possible to get the time for which a variant is scheduled to be published. -Therefore, the exported data only contain the information that the variant is scheduled to be published, but without the date. - -#### Performance - -The command leverages [the Management API](https://kontent.ai/learn/docs/apis/openapi/management-api-v2) to get the project data which might be slow for projects with large amounts of content items. ## Import With the `import` command, you can import data into your Kontent.ai environment. -The target environment needs to be empty, otherwise the command might fail. +**The target environment needs to be empty**, otherwise the command might fail. The command uses [the Management API](https://kontent.ai/learn/docs/apis/openapi/management-api-v2) to import the data. > [!TIP] @@ -143,30 +120,25 @@ npx @kontent-ai/data-ops import --fileName --environmentId