upload2cs

Upload bulk assets to Contentstack

Usage no npm install needed!

<script type="module">
  import upload2cs from 'https://cdn.skypack.dev/upload2cs';
</script>

README

upload2cs

Upload bulk assets to Contentstack

Install

$ npm install upload2cs -g

CLI Usage

$ upload2cs --help

  Usage
    $ upload2cs --apiKey="api_key_of_the_stack" --managementToken="read_write_access_token"
Options
    --apiKey                 API key of the Stack.
    --managementToken        Management Token with read write access.
    --assetsDir              Directory from where assets should be uploaded
    --uploadParentDirUid     Parent UID of Contentstack folder where all assets should be uploaded.
    --isAemDamDir            Flag to indicate that asset directory is AEM DAM directory.
    --preserveDirPaths       Flag to preserve folder structure in the Contentstack.
    --concurrency            Number of assets to be uploaded in parallel.
    --publishEnvironments    Comma separated environment names where assets should be published .
    --noDuplicateAsset       If false then it will not check for the existing name folder or assets.
    --cwd                    Current working directory for the operations.
<source> can contain globs if quoted
Examples
    Upload all assets from the current directory
    $ upload2cs --apiKey="api_key_of_the_stack" --managementToken="read_write_access_token"
    Upload all assets from the current unzipped AEM DAM directory
    $ upload2cs --apiKey="api_key_of_the_stack" --managementToken="read_write_access_token" --isAemDamDir