https://github.com/commercetools/commercetools-cli-scripts
Collection of node.js based scripts and utils for CTP resource management
https://github.com/commercetools/commercetools-cli-scripts
Last synced: 10 months ago
JSON representation
Collection of node.js based scripts and utils for CTP resource management
- Host: GitHub
- URL: https://github.com/commercetools/commercetools-cli-scripts
- Owner: commercetools
- License: mit
- Created: 2020-06-24T16:04:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-15T07:20:20.000Z (almost 5 years ago)
- Last Synced: 2025-08-28T19:03:33.524Z (10 months ago)
- Language: JavaScript
- Size: 36.1 KB
- Stars: 2
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# commercetools-cli-scripts
The repository provides a set of tools and examples based on commercetools nodejs SDK.
## Requirements
- Node.js version 16 ([install](https://nodejs.org/en/download))
- Npm version 7
- commercetools project credentials
## How to run
- Navigate with your terminal to the main directory and run:
```
npm install
```
- Navigate with your terminal to the desired script folder with the file named `run.js`.
- Export commercetools credentials as environment variables:
```
export CTP_PROJECT_KEY='' \
export CTP_CLIENT_ID='' \
export CTP_CLIENT_SECRET='' \
export CTP_API_URL='https://api.europe-west1.gcp.commercetools.com' \
export CTP_AUTH_URL='https://auth.europe-west1.gcp.commercetools.com'
```
- Run the script:
```
node run.js
```