Comparing version 0.0.19 to 0.0.20
@@ -9,4 +9,4 @@ #!/usr/bin/env node | ||
const argv = yargs(process.argv.slice(2)) | ||
.example('csvm --action=export --format=csv|json --apiKey=xxx --environmentId=xxx', 'Creates zip export of Kontent.ai content data') | ||
.example('csvm --action=import --apiKey=xxx --environmentId=xxx --filename=exportFile', 'Read given zip file and recreates data in Kontent.ai environment') | ||
.example('kontent-ai-migration-toolkit --action=export --format=csv|json --apiKey=xxx --environmentId=xxx', 'Creates zip export of Kontent.ai content data') | ||
.example('kontent-ai-migration-toolkit --action=import --apiKey=xxx --environmentId=xxx --filename=exportFile', 'Read given zip file and recreates data in Kontent.ai environment') | ||
.alias('a', 'action') | ||
@@ -247,5 +247,2 @@ .describe('a', 'Type of action to execute') | ||
}; | ||
run().catch((err) => { | ||
handleError(err); | ||
}); | ||
function getAssetFormatService(format) { | ||
@@ -295,2 +292,5 @@ if (format === 'csv') { | ||
} | ||
run().catch((err) => { | ||
handleError(err); | ||
}); | ||
//# sourceMappingURL=app.js.map |
@@ -32,7 +32,7 @@ #!/usr/bin/env node | ||
.example( | ||
'csvm --action=export --format=csv|json --apiKey=xxx --environmentId=xxx', | ||
'kontent-ai-migration-toolkit --action=export --format=csv|json --apiKey=xxx --environmentId=xxx', | ||
'Creates zip export of Kontent.ai content data' | ||
) | ||
.example( | ||
'csvm --action=import --apiKey=xxx --environmentId=xxx --filename=exportFile', | ||
'kontent-ai-migration-toolkit --action=import --apiKey=xxx --environmentId=xxx --filename=exportFile', | ||
'Read given zip file and recreates data in Kontent.ai environment' | ||
@@ -299,6 +299,2 @@ ) | ||
run().catch((err) => { | ||
handleError(err); | ||
}); | ||
function getAssetFormatService(format: ProcessingFormat | undefined): IAssetFormatService { | ||
@@ -361,1 +357,5 @@ if (format === 'csv') { | ||
} | ||
run().catch((err) => { | ||
handleError(err); | ||
}); |
{ | ||
"name": "xeno-test", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "This program can be used to import content related data into Kontent.ai from various formats. Additionally, it can also be used to export Kontent.ai data using Delivery API.", | ||
@@ -12,3 +12,3 @@ "preferGlobal": true, | ||
"type": "git", | ||
"url": "https://github.com/Enngage/kontent-ai-migration-toolkit" | ||
"url": "https://github.com/Kontent-ai-consulting/kontent-ai-migration-toolkit" | ||
}, | ||
@@ -15,0 +15,0 @@ "engines": { |
@@ -21,11 +21,6 @@ # Kontent.ai Migration Toolkit | ||
```bash | ||
npx xeno-test --help | ||
# or | ||
yarn dlx xeno-test --help | ||
npx kontent-ai-migration-toolkit --help | ||
# help for a specific command | ||
npx xeno-test <command> --help | ||
# you can also install the package globally, or locally | ||
npm i xeno-test -g | ||
npm i kontent-ai-migration-toolkit -g | ||
@@ -43,5 +38,5 @@ # with the package installed, you can call the tool as follows | ||
> [!NOTE] | ||
> When importing it is essential that `Content types`, `Taxonomies` and `Workflows` matches the input data. Any | ||
> inconsistency in data such as referencing inexistent taxonomy term, incorrect element type and other problems will | ||
> cause import to fail. | ||
> When importing it is essential that used `Content types`, `Taxonomies` and `Workflows` are consistent with the ones | ||
> defined in target environment. Any inconsistency in data such as referencing inexistent taxonomy term, incorrect | ||
> element type and other problems will cause import to fail. | ||
@@ -126,3 +121,3 @@ ## How are content items & language variants imported? | ||
> Models are defined at https://github.com/Enngage/kontent-ai-migration-toolkit/blob/main/lib/core/migration-models.ts | ||
> Models are defined at https://github.com/Kontent-ai-consulting/kontent-ai-migration-toolkit/blob/main/lib/core/migration-models.ts | ||
@@ -204,3 +199,4 @@ ```typescript | ||
> You may find sample export (`.zip`) with both items & assets at https://github.com/Enngage/kontent-ai-migration-toolkit/tree/main/samples/export-data | ||
> You may find sample export (`.zip`) with both items & assets at | ||
> https://github.com/Kontent-ai-consulting/kontent-ai-migration-toolkit/tree/main/samples/export-data | ||
@@ -311,3 +307,3 @@ # Export | ||
See https://github.com/Enngage/kontent-ai-migration-toolkit/tree/main/samples for examples of how to run this library in | ||
See https://github.com/Kontent-ai-consulting/kontent-ai-migration-toolkit/tree/main/samples for examples of how to run this library in | ||
code rather then via command line. | ||
@@ -325,5 +321,5 @@ | ||
| ------------ | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `csv` | `ItemCsvProcessorService ` | https://github.com/Enngage/kontent-ai-migration-toolkit/blob/main/lib/file-processor/item-formats/item-csv-processor.service.ts | | ||
| `json` | `ItemJsonProcessorService ` | https://github.com/Enngage/kontent-ai-migration-toolkit/blob/main/lib/file-processor/item-formats/item-json-processor.service.ts | | ||
| `jsonJoined` | `ItemJsonJoinedProcessorService ` | https://github.com/Enngage/kontent-ai-migration-toolkit/blob/main/lib/file-processor/item-formats/item-json-joined-processor.service.ts | | ||
| `csv` | `ItemCsvProcessorService ` | https://github.com/Kontent-ai-consulting/kontent-ai-migration-toolkit/blob/main/lib/file-processor/item-formats/item-csv-processor.service.ts | | ||
| `json` | `ItemJsonProcessorService ` | https://github.com/Kontent-ai-consulting/kontent-ai-migration-toolkit/blob/main/lib/file-processor/item-formats/item-json-processor.service.ts | | ||
| `jsonJoined` | `ItemJsonJoinedProcessorService ` | https://github.com/Kontent-ai-consulting/kontent-ai-migration-toolkit/blob/main/lib/file-processor/item-formats/item-json-joined-processor.service.ts | | ||
@@ -352,3 +348,3 @@ ## Limitations | ||
``` | ||
node --max-http-header-size 150000 %USERPROFILE%\AppData\Roaming\npm\node_modules\xeno-test\dist\cjs\lib\node\cli\app --action=export --apiKey=<key> --environmentId=<environmentId> | ||
node --max-http-header-size 150000 %USERPROFILE%\AppData\Roaming\npm\node_modules\kontent-ai-migration-toolkit\dist\cjs\lib\node\cli\app --action=export --apiKey=<key> --environmentId=<environmentId> | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
424258
344