-
Contentstack account
-
Contentstack cli installed on your machine, if not install using:
npm i -g @contentstack/cli@latest
- Clone the repo using
git clone https://github.com/Contentstack-Solutions/red-panda-export.git
- Navigate to the root directory, Run
npm install
if you want to import the exported content from this repository follow these steps:
- Navigate to root directory
- Run following command in terminal
csdx config:set:region
csdx auth:login
csdx cm:stacks:import -k <<DESTINATION_STACK_API KEY>> -d content/main -y
Sit back and relax, import to your destination stack will start.
This repository includes scripts to update the exported content from Contentstack.
Create a .env file and following environment variable
RP_STACK_API_KEY=<<RED_PANDA_STACK_API_KEY>>
# Update content directory (delete existing and re-export)
npm run content:update- Deletes the existing
contentdirectory - Runs the Contentstack export command:
csdx cm:export -k <<RED PANDA STACK API KEY>> -d content - Creates fresh content export from Contentstack
This repository includes scripts to manage release tags and their versions. Which will be published and available to use.
# Create tag with current package.json version
npm run version:update tag
# Create tag with custom version
npm run version:update tag 1.2.3
# Force recreate existing tag (deletes existing tags first)
npm run version:update tag 1.2.3 force-update
# Update version in package.json and create tag using patch|minor|major
# Increment patch version (3.3.0 → 3.3.1) and create tag
npm run version:update patch
# Increment minor version (3.3.0 → 3.4.0) and create tag
npm run version:update minor
# Increment major version (3.3.0 → 4.0.0) and create tag
npm run version:update major
# help command
npm run version:update help