Skip to content

Commit

Permalink
Merge branch 'main' into snyk-upgrade-c17301eae8e0e65f63843c45b48b7dc8
Browse files Browse the repository at this point in the history
  • Loading branch information
netrajpatel authored Sep 7, 2023
2 parents 5e17db9 + 1ef6065 commit d21cf39
Show file tree
Hide file tree
Showing 388 changed files with 22,239 additions and 20,867 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v3.5.3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jira.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'snyk-bot' || contains(github.event.pull_request.head.ref, 'snyk-fix-') || contains(github.event.pull_request.head.ref, 'snyk-upgrade-')}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.5.3
- name: Login into JIRA
uses: atlassian/gajira-login@master
env:
Expand Down
61 changes: 34 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v3.5.3
- uses: pnpm/action-setup@v2.2.4
with:
version: 7
- uses: actions/setup-node@v1
with:
node-version: '16.x'
node-version: '18.x'
cache: 'pnpm'
- name: Reading Configuration
id: release_config
Expand All @@ -32,7 +32,7 @@ jobs:
working-directory: ./packages/contentstack-dev-dependencies
run: npm run prepack
- name: Publishing dev dependencies
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.dev-dependencies-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -47,7 +47,7 @@ jobs:
working-directory: ./packages/contentstack-utilities
run: npm run prepack
- name: Publishing utilities
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.utilities-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -62,7 +62,7 @@ jobs:
working-directory: ./packages/contentstack-command
run: npm run prepack
- name: Publishing command
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.command-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -77,7 +77,7 @@ jobs:
working-directory: ./packages/contentstack-config
run: npm run prepack
- name: Publishing config
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.config-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -92,7 +92,7 @@ jobs:
working-directory: ./packages/contentstack-auth
run: npm run prepack
- name: Publishing auth
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.auth-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -102,8 +102,12 @@ jobs:
if: ${{ env.release_releaseAll == 'true' || env.release_plugins_export == 'true'}}
working-directory: ./packages/contentstack-export
run: npm install
- name: Compiling export
if: ${{ steps.export-installation.conclusion == 'success' }}
working-directory: ./packages/contentstack-export
run: npm run prepack
- name: Publishing export
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.export-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -113,8 +117,12 @@ jobs:
if: ${{env.release_releaseAll == 'true' || env.release_plugins_import == 'true'}}
working-directory: ./packages/contentstack-import
run: npm install
- name: Compiling import
if: ${{ steps.import-installation.conclusion == 'success' }}
working-directory: ./packages/contentstack-import
run: npm run prepack
- name: Publishing import
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.import-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -125,7 +133,7 @@ jobs:
working-directory: ./packages/contentstack-clone
run: npm install
- name: Publishing clone
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.clone-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -136,7 +144,7 @@ jobs:
working-directory: ./packages/contentstack-export-to-csv
run: npm install
- name: Publishing export to csv
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.export-to-csv-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -147,7 +155,7 @@ jobs:
working-directory: ./packages/contentstack-migrate-rte
run: npm install
- name: Publishing migrate rte
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.migrate-rte-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -158,7 +166,7 @@ jobs:
working-directory: ./packages/contentstack-migration
run: npm install
- name: Publishing migration
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.migration-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -173,7 +181,7 @@ jobs:
working-directory: ./packages/contentstack-seed
run: npm run prepack
- name: Publishing seed
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.seed-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -188,7 +196,7 @@ jobs:
working-directory: ./packages/contentstack-bootstrap
run: npm run prepack
- name: Publishing bootstrap
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.bootstrap-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -199,7 +207,7 @@ jobs:
working-directory: ./packages/contentstack-bulk-publish
run: npm install
- name: Publishing bulk publish
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.bulk-publish-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -214,7 +222,7 @@ jobs:
working-directory: ./packages/contentstack-launch
run: npm run prepack
- name: Publishing launch
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.launch-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -230,7 +238,7 @@ jobs:
working-directory: ./packages/contentstack-branches
run: npm run prepack
- name: Publishing branches
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.branches-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -241,27 +249,26 @@ jobs:
if: ${{env.release_releaseAll == 'true' || env.release_plugins_core == 'true'}}
working-directory: ./packages/contentstack
run: npm install
- name: Compiling core
if: ${{ steps.core-installation.conclusion == 'success' }}
working-directory: ./packages/contentstack
run: npm run prepack
- name: Publishing core
id: publish-core
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2.2.1
if: ${{ steps.core-installation.conclusion == 'success' }}
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack/package.json
- uses: actions/checkout@v2
- uses: actions/checkout@v3.5.3
with:
ref: 'prod-qa-pipeline'
- run: echo ${{ steps.publish-core.outputs.version }} > version.md
- uses: EndBug/add-and-commit@v9
with:
message: 'Released version'
- name: Create Release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.publish-core.outputs.version }}
release_name: Release ${{ steps.publish-core.outputs.version }}
draft: false # Default value, but nice to set explicitly
prerelease: false # Default value, but nice to set explicitly
run: gh release create v${{ steps.publish-core.outputs.version }} --title "Release ${{ steps.publish-core.outputs.version }}" --generate-notes
11 changes: 0 additions & 11 deletions .github/workflows/sast-scan.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/sca-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 7
- name: Use Node.js 16.x
uses: actions/setup-node@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3.7.0
with:
node-version: '16.x'
node-version: '18.x'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/secrets-scan.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ oclif.manifest.json
contentstack-cli-logs
packages/**/package-lock.json
.dccache
yarn.lock
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,37 @@

Contentstack is a headless CMS with an API-first approach that puts content at the centre. It is designed to simplify the process of publication by separating code from content.

Currently, the CLI is in Beta and supports content management scripts through which you can perform the following tasks:
CLI supports content management scripts through which you can perform the following tasks:

- Bulk publish content
- Export content
- Export content
- Import content
- Clone Stack
- Seed Stack from Github
- Seed Stack from GitHub
- Perform Launch operations
- Migrate content
- Migrate HTML RTE to JSON RTE content
- Change Master Locale
- Use Bootstrap plugin
- Use Tsgen plugin


## Installing CLI
### Prerequisites
Contentstack account
Node.js version 8 or above
Node.js version 16 or above

### Installation
To install CLI on your system, run the below command in your terminal:

```
npm install -g @contentstack/cli
npm install -g @contentstack/cli
```

To verify the installation, run `csdx` in the command window.

## Usage
After the successful installation of CLI, use the `--help` parameter to display the help section of the CLI. You can even combine this parameter with a specific command to get the help section of that command.
After the successful installation of CLI, use the `--help` parameter to display the help section of the CLI. You can even combine this parameter with a specific command to get the help section of that command.

```shell
$ csdx --help
Expand Down
Loading

0 comments on commit d21cf39

Please sign in to comment.