From a7b2ef17f88d80f63f6c7f044a81f6ebf94a68a3 Mon Sep 17 00:00:00 2001 From: Aravind Kumar Date: Tue, 30 Jun 2026 20:12:19 +0530 Subject: [PATCH 1/8] Delete issues-jira.yml --- .github/workflows/issues-jira.yml | 118 ------------------------------ 1 file changed, 118 deletions(-) delete mode 100644 .github/workflows/issues-jira.yml diff --git a/.github/workflows/issues-jira.yml b/.github/workflows/issues-jira.yml deleted file mode 100644 index 5f65d0b60a..0000000000 --- a/.github/workflows/issues-jira.yml +++ /dev/null @@ -1,118 +0,0 @@ -name: Create Jira Ticket for Github Issue - -on: - issues: - types: [opened, reopened] - -jobs: - issue-jira: - runs-on: ubuntu-latest - steps: - - name: Create Jira Issue - id: create_jira - uses: actions/github-script@v9 - with: - script: | - const baseUrl = process.env.JIRA_BASE_URL; - const userEmail = process.env.JIRA_USER_EMAIL; - const jiraToken = process.env.JIRA_API_TOKEN; - const jiraProject = process.env.JIRA_PROJECT; - const jiraIssueType = process.env.JIRA_ISSUE_TYPE; - const jiraFields = JSON.parse(process.env.ISSUES_JIRA_FIELDS); - - let requestBody = JSON.stringify({ - fields: { - ...jiraFields, - "project": { - "key": jiraProject - }, - "issuetype": { - "name": jiraIssueType - }, - "summary": "Github | Issue | ${{ github.event.repository.name }} | ${{ github.event.issue.title }}", - "description": { - "version": 1, - "type": "doc", - "content": [ - { - "type": "paragraph", - "content": [ - { - "type": "text", - "text": "Github Issue", - "marks": [ - { - "type": "strong" - } - ] - }, - { - "type": "text", - "text": ": " - }, - { - "type": "text", - "text": "${{ github.event.issue.html_url }}", - "marks": [ - { - "type": "link", - "attrs": { - "href": "${{ github.event.issue.html_url }}" - } - } - ] - } - ] - }, - { - "type": "paragraph", - "content": [ - { - "type": "text", - "text": "Description", - "marks": [ - { - "type": "strong" - } - ] - }, - { - "type": "text", - "text": ":" - } - ] - }, - { - "type": "codeBlock", - "content": [ - { - "type": "text", - "text": `${{ github.event.issue.body }}` - } - ] - } - ] - } - } - }); - - const response = await fetch(`${baseUrl}/rest/api/3/issue`, { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'Authorization': `Basic ${btoa(userEmail + ":" + jiraToken)}` - }, - body: requestBody - }); - if (!response.ok) { - throw new Error(`JIRA API error! Status: ${response.status}`); - } - const data = await response.json(); - console.log('Jira Issue Created:', data.key); - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - JIRA_PROJECT: ${{ secrets.JIRA_PROJECT }} - JIRA_ISSUE_TYPE: ${{ secrets.JIRA_ISSUE_TYPE }} - ISSUES_JIRA_FIELDS: "${{ secrets.ISSUES_JIRA_FIELDS }}" From 7d6fd0401eb2d7694e28a119c4c7865e18bdb298 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Sun, 5 Jul 2026 17:45:30 +0530 Subject: [PATCH 2/8] docs: comprehensive README audit, package.json standardization, and source fixes --- README.md | 8 +- packages/contentstack-auth/README.md | 87 +- packages/contentstack-auth/package.json | 8 +- .../src/commands/auth/whoami.ts | 2 +- packages/contentstack-command/package.json | 8 +- packages/contentstack-config/README.md | 43 +- packages/contentstack-config/package.json | 8 +- .../config/set/early-access-header.ts | 4 +- packages/contentstack-utilities/package.json | 5 +- packages/contentstack/README.md | 2346 +++-------------- packages/contentstack/package.json | 6 +- 11 files changed, 444 insertions(+), 2081 deletions(-) diff --git a/README.md b/README.md index 6b922e41eb..b98bd98abc 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ CLI supports content management scripts through which you can perform the follow ## Installing CLI ### Prerequisites Contentstack account -Node.js version 16 or above +Node.js version 22 or above ### Installation To install CLI on your system, run the below command in your terminal: @@ -54,7 +54,7 @@ $ csdx --help ## Namespaces **auth**: To perform [authentication-related](/packages/contentstack-auth) activities -**cm**: To perform content management activities such as [bulk publish](/packages/contentstack-bulk-publish), [import](/packages/contentstack-import), and [export](/packages/contentstack-export), [export-to-csv] (/packages/contentstack-export-to-csv), [seed] (/packages/contentstack-seed) +**cm**: To perform content management activities such as [bulk operations](/packages/contentstack-bulk-operations), [import](/packages/contentstack-import), and [export](/packages/contentstack-export), [export-to-csv](/packages/contentstack-export-to-csv), [seed](/packages/contentstack-seed) **help**: To list the helpful commands in CLI @@ -62,8 +62,8 @@ $ csdx --help ## Documentation -To get a more detailed documentation for every command, visit the [CLI section](https://www.contentstack.com/docs/developers/cli) in our docs. +To get a more detailed documentation for every command, visit the [CLI section](https://www.contentstack.com/docs/headless-cms/cli) in our docs. ## Useful Plugins -- [Generate TypeScript typings from a Stack](https://github.com/Contentstack-Solutions/contentstack-cli-tsgen) +- [Generate TypeScript typings from a Stack](https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-cli-tsgen) diff --git a/packages/contentstack-auth/README.md b/packages/contentstack-auth/README.md index 61f0f8814d..c0329efa68 100644 --- a/packages/contentstack-auth/README.md +++ b/packages/contentstack-auth/README.md @@ -1,6 +1,6 @@ # @contentstack/cli-auth -It is Contentstack’s CLI plugin to perform authentication-related activities. To get started with authentication, refer to the [CLI’s Authentication documentation](https://www.contentstack.com/docs/developers/cli/authentication) +It is Contentstack’s CLI plugin to perform authentication-related activities. To get started with authentication, refer to the [CLI’s Authentication documentation](https://www.contentstack.com/docs/headless-cms/cli/authentication) [![License](https://img.shields.io/npm/l/@contentstack/cli)](https://github.com/contentstack/cli/blob/main/LICENSE) @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-auth/2.0.0-beta.10 darwin-arm64 node-v22.13.1 +@contentstack/cli-auth/2.0.0-beta.15 darwin-arm64 node-v22.21.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND @@ -33,11 +33,11 @@ USAGE * [`csdx auth:logout`](#csdx-authlogout) * [`csdx auth:tokens`](#csdx-authtokens) * [`csdx auth:tokens:add [-a ] [--delivery] [--management] [-e ] [-k ] [-y] [--token ]`](#csdx-authtokensadd--a-value---delivery---management--e-value--k-value--y---token-value) +* [`csdx auth:tokens:list`](#csdx-authtokenslist) * [`csdx auth:tokens:remove`](#csdx-authtokensremove) * [`csdx auth:whoami`](#csdx-authwhoami) * [`csdx login`](#csdx-login) * [`csdx logout`](#csdx-logout) -* [`csdx tokens`](#csdx-tokens) * [`csdx whoami`](#csdx-whoami) ## `csdx auth:login` @@ -102,7 +102,7 @@ _See code: [src/commands/auth/logout.ts](https://github.com/contentstack/cli/blo ## `csdx auth:tokens` -Lists all existing tokens added to the session +Manage authentication tokens for API access ``` USAGE @@ -120,13 +120,14 @@ TABLE FLAGS --sort= Sort the table by a column. Use "-" for descending. DESCRIPTION - Lists all existing tokens added to the session - -ALIASES - $ csdx tokens + Manage authentication tokens for API access EXAMPLES - $ csdx auth:tokens + $ csdx auth:tokens:list + + $ csdx auth:tokens:add --alias mytoken + + $ csdx auth:tokens:remove --alias mytoken ``` _See code: [src/commands/auth/tokens/index.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/tokens/index.ts)_ @@ -177,17 +178,44 @@ EXAMPLES _See code: [src/commands/auth/tokens/add.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/tokens/add.ts)_ +## `csdx auth:tokens:list` + +Lists all existing tokens added to the session + +``` +USAGE + $ csdx auth:tokens:list [--columns ] [--sort ] [--filter ] [--csv] [--no-truncate] + [--no-header] [--output csv|json|yaml] + +TABLE FLAGS + --columns= Specify columns to display, comma-separated. + --csv Output results in CSV format. + --filter= Filter rows by a column value (e.g., name=foo). + --no-header Hide table headers in output. + --no-truncate Prevent truncation of long text in columns. + --output=