Skip to content

Commit b8866d5

Browse files
committed
Merge branch 'development' into feat/DX-3421
2 parents ff0f3b8 + 6b4e926 commit b8866d5

File tree

14 files changed

+70
-86
lines changed

14 files changed

+70
-86
lines changed

.talismanrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
fileignoreconfig:
22
- filename: package-lock.json
3-
checksum: 283cf2850df7f019a02b3eb957b5e970762ddf783247848000635963c1ee6eaf
3+
checksum: 87b205a27082d15199ba291550e9ca3e8c784fe5bade7fcb89bf2acb1e850b23
44
- filename: pnpm-lock.yaml
5-
checksum: 69dfee27d69de03cee3179a0a68da4d731ab912127c69aba42d840d441e318eb
5+
checksum: d28afee9b463d66004354b9476b1e39344f903e2db3a15c5f83bd84e688c01d6
66
- filename: packages/contentstack-import-setup/test/unit/backup-handler.test.ts
77
checksum: 0582d62b88834554cf12951c8690a73ef3ddbb78b82d2804d994cf4148e1ef93
88
- filename: packages/contentstack-import-setup/test/config.json
@@ -59,4 +59,4 @@ fileignoreconfig:
5959
checksum: b067f93cf0185d794e8419cc41e8fac96ed790dea8fc48dc083ee242ccacbd4d
6060
- filename: packages/contentstack-import/src/import/module-importer.ts
6161
checksum: bdcfad1ec3a329f9ab49a203e8ea9cb97a9db2250bc202b92cd47ccc5a193010
62-
version: "1.0"
62+
version: "1.0"

packages/contentstack-audit/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit
1919
$ csdx COMMAND
2020
running command...
2121
$ csdx (--version|-v)
22-
@contentstack/cli-audit/1.14.0 darwin-arm64 node-v23.11.0
22+
@contentstack/cli-audit/1.14.0 darwin-x64 node-v22.17.0
2323
$ csdx --help [COMMAND]
2424
USAGE
2525
$ csdx COMMAND
@@ -282,7 +282,7 @@ DESCRIPTION
282282
Display help for csdx.
283283
```
284284

285-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.29/src/commands/help.ts)_
285+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.32/src/commands/help.ts)_
286286

287287
## `csdx plugins`
288288

@@ -305,7 +305,7 @@ EXAMPLES
305305
$ csdx plugins
306306
```
307307

308-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.43/src/commands/plugins/index.ts)_
308+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.46/src/commands/plugins/index.ts)_
309309

310310
## `csdx plugins:add PLUGIN`
311311

@@ -379,7 +379,7 @@ EXAMPLES
379379
$ csdx plugins:inspect myplugin
380380
```
381381

382-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.43/src/commands/plugins/inspect.ts)_
382+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.46/src/commands/plugins/inspect.ts)_
383383

384384
## `csdx plugins:install PLUGIN`
385385

@@ -428,7 +428,7 @@ EXAMPLES
428428
$ csdx plugins:install someuser/someplugin
429429
```
430430

431-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.43/src/commands/plugins/install.ts)_
431+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.46/src/commands/plugins/install.ts)_
432432

433433
## `csdx plugins:link PATH`
434434

@@ -459,7 +459,7 @@ EXAMPLES
459459
$ csdx plugins:link myplugin
460460
```
461461

462-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.43/src/commands/plugins/link.ts)_
462+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.46/src/commands/plugins/link.ts)_
463463

464464
## `csdx plugins:remove [PLUGIN]`
465465

@@ -500,7 +500,7 @@ FLAGS
500500
--reinstall Reinstall all plugins after uninstalling.
501501
```
502502

503-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.43/src/commands/plugins/reset.ts)_
503+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.46/src/commands/plugins/reset.ts)_
504504

505505
## `csdx plugins:uninstall [PLUGIN]`
506506

@@ -528,7 +528,7 @@ EXAMPLES
528528
$ csdx plugins:uninstall myplugin
529529
```
530530

531-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.43/src/commands/plugins/uninstall.ts)_
531+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.46/src/commands/plugins/uninstall.ts)_
532532

533533
## `csdx plugins:unlink [PLUGIN]`
534534

@@ -572,5 +572,5 @@ DESCRIPTION
572572
Update installed plugins.
573573
```
574574

575-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.43/src/commands/plugins/update.ts)_
575+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.46/src/commands/plugins/update.ts)_
576576
<!-- commandsstop -->

packages/contentstack-auth/package.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,6 @@
7070
"bin": "csdx",
7171
"repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-auth/<%- commandPath %>"
7272
},
73-
"csdxConfig": {
74-
"shortCommandName": {
75-
"auth:login": "LIN",
76-
"auth:logout": "LOT",
77-
"auth:whoami": "WHO",
78-
"auth:tokens": "LSTKN",
79-
"auth:tokens:add": "ADTKN",
80-
"auth:tokens:remove": "RMTKN"
81-
}
82-
},
8373
"csdxConfig": {
8474
"shortCommandName": {
8575
"auth:login": "LOGIN",

packages/contentstack-branches/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches
3737
$ csdx COMMAND
3838
running command...
3939
$ csdx (--version)
40-
@contentstack/cli-cm-branches/1.5.0 darwin-arm64 node-v23.11.0
40+
@contentstack/cli-cm-branches/1.5.1 darwin-x64 node-v22.17.0
4141
$ csdx --help [COMMAND]
4242
USAGE
4343
$ csdx COMMAND

packages/contentstack-clone/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-clone
1616
$ csdx COMMAND
1717
running command...
1818
$ csdx (--version)
19-
@contentstack/cli-cm-clone/1.15.0 darwin-arm64 node-v22.13.1
19+
@contentstack/cli-cm-clone/1.15.1 darwin-x64 node-v22.17.0
2020
$ csdx --help [COMMAND]
2121
USAGE
2222
$ csdx COMMAND

packages/contentstack-config/README.md

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,46 @@ The config namespace contains all the commands that you will need to configure t
55
[![License](https://img.shields.io/npm/l/@contentstack/cli)](https://github.com/contentstack/cli/blob/main/LICENSE)
66

77
<!-- toc -->
8-
9-
- [@contentstack/cli-config](#contentstackcli-config)
10-
- [Usage](#usage)
11-
- [Commands](#commands)
8+
* [@contentstack/cli-config](#contentstackcli-config)
9+
* [Usage](#usage)
10+
* [Commands](#commands)
1211
<!-- tocstop -->
1312

1413
# Usage
1514

1615
<!-- usage -->
17-
1816
```sh-session
1917
$ npm install -g @contentstack/cli-config
2018
$ csdx COMMAND
2119
running command...
2220
$ csdx (--version)
23-
@contentstack/cli-config/1.15.0 darwin-arm64 node-v22.14.0
21+
@contentstack/cli-config/1.15.0 darwin-x64 node-v22.17.0
2422
$ csdx --help [COMMAND]
2523
USAGE
2624
$ csdx COMMAND
2725
...
2826
```
29-
3027
<!-- usagestop -->
3128

3229
# Commands
3330

3431
<!-- commands -->
35-
36-
- [`csdx config:get:base-branch`](#csdx-configgetbase-branch)
37-
- [`csdx config:get:ea-header`](#csdx-configgetea-header)
38-
- [`csdx config:get:early-access-header`](#csdx-configgetearly-access-header)
39-
- [`csdx config:get:log`](#csdx-configgetlog)
40-
- [`csdx config:get:rate-limit`](#csdx-configgetrate-limit)
41-
- [`csdx config:get:region`](#csdx-configgetregion)
42-
- [`csdx config:remove:base-branch`](#csdx-configremovebase-branch)
43-
- [`csdx config:remove:ea-header`](#csdx-configremoveea-header)
44-
- [`csdx config:remove:early-access-header`](#csdx-configremoveearly-access-header)
45-
- [`csdx config:remove:rate-limit`](#csdx-configremoverate-limit)
46-
- [`csdx config:set:base-branch`](#csdx-configsetbase-branch)
47-
- [`csdx config:set:ea-header`](#csdx-configsetea-header)
48-
- [`csdx config:set:early-access-header`](#csdx-configsetearly-access-header)
49-
- [`csdx config:set:log`](#csdx-configsetlog)
50-
- [`csdx config:set:rate-limit`](#csdx-configsetrate-limit)
51-
- [`csdx config:set:region [REGION]`](#csdx-configsetregion-region)
32+
* [`csdx config:get:base-branch`](#csdx-configgetbase-branch)
33+
* [`csdx config:get:ea-header`](#csdx-configgetea-header)
34+
* [`csdx config:get:early-access-header`](#csdx-configgetearly-access-header)
35+
* [`csdx config:get:log`](#csdx-configgetlog)
36+
* [`csdx config:get:rate-limit`](#csdx-configgetrate-limit)
37+
* [`csdx config:get:region`](#csdx-configgetregion)
38+
* [`csdx config:remove:base-branch`](#csdx-configremovebase-branch)
39+
* [`csdx config:remove:ea-header`](#csdx-configremoveea-header)
40+
* [`csdx config:remove:early-access-header`](#csdx-configremoveearly-access-header)
41+
* [`csdx config:remove:rate-limit`](#csdx-configremoverate-limit)
42+
* [`csdx config:set:base-branch`](#csdx-configsetbase-branch)
43+
* [`csdx config:set:ea-header`](#csdx-configsetea-header)
44+
* [`csdx config:set:early-access-header`](#csdx-configsetearly-access-header)
45+
* [`csdx config:set:log`](#csdx-configsetlog)
46+
* [`csdx config:set:rate-limit`](#csdx-configsetrate-limit)
47+
* [`csdx config:set:region [REGION]`](#csdx-configsetregion-region)
5248

5349
## `csdx config:get:base-branch`
5450

@@ -434,5 +430,4 @@ EXAMPLES
434430
```
435431

436432
_See code: [src/commands/config/set/region.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/set/region.ts)_
437-
438433
<!-- commandsstop -->

packages/contentstack-export/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $ npm install -g @contentstack/cli-cm-export
4848
$ csdx COMMAND
4949
running command...
5050
$ csdx (--version)
51-
@contentstack/cli-cm-export/1.18.0 darwin-arm64 node-v22.13.1
51+
@contentstack/cli-cm-export/1.19.0 darwin-x64 node-v22.17.0
5252
$ csdx --help [COMMAND]
5353
USAGE
5454
$ csdx COMMAND

packages/contentstack-export/src/export/module-exporter.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ class ModuleExporter {
2727

2828
async start(): Promise<any> {
2929
// setup the branches
30-
if (!this.exportConfig.branchName && this.exportConfig.branchAlias) {
31-
try {
30+
try {
31+
if (!this.exportConfig.branchName && this.exportConfig.branchAlias) {
3232
this.exportConfig.branchName = await getBranchFromAlias(this.stackAPIClient, this.exportConfig.branchAlias);
33-
} catch (err) {
34-
throw err;
3533
}
34+
await setupBranches(this.exportConfig, this.stackAPIClient);
35+
await setupExportDir(this.exportConfig);
36+
// if branches available run it export by branches
37+
if (this.exportConfig.branches) {
38+
this.exportConfig.branchEnabled = true;
39+
return this.exportByBranches();
40+
}
41+
return this.export();
42+
} catch (error) {
43+
throw error;
3644
}
37-
await setupBranches(this.exportConfig, this.stackAPIClient);
38-
await setupExportDir(this.exportConfig);
39-
// if branches available run it export by branches
40-
if (this.exportConfig.branches) {
41-
this.exportConfig.branchEnabled = true;
42-
return this.exportByBranches();
43-
}
44-
return this.export();
4545
}
4646

4747
async exportByBranches(): Promise<void> {

packages/contentstack-import-setup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import-setup
4747
$ csdx COMMAND
4848
running command...
4949
$ csdx (--version)
50-
@contentstack/cli-cm-import-setup/1.4.0 darwin-arm64 node-v22.13.1
50+
@contentstack/cli-cm-import-setup/1.4.1 darwin-x64 node-v22.17.0
5151
$ csdx --help [COMMAND]
5252
USAGE
5353
$ csdx COMMAND

packages/contentstack-import/README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ It is Contentstack’s CLI plugin to import content in the stack. To learn how t
55
[![License](https://img.shields.io/npm/l/@contentstack/cli)](https://github.com/contentstack/cli/blob/main/LICENSE)it -m
66

77
<!-- toc -->
8-
9-
- [Usage](#usage)
10-
- [Commands](#commands)
8+
* [Usage](#usage)
9+
* [Commands](#commands)
1110
<!-- tocstop -->
1211

1312
For switching to EU region update the hosts at config/default.js
@@ -43,27 +42,24 @@ For switching to AZURE-EU region update the hosts at config/default.js
4342
# Usage
4443

4544
<!-- usage -->
46-
4745
```sh-session
4846
$ npm install -g @contentstack/cli-cm-import
4947
$ csdx COMMAND
5048
running command...
5149
$ csdx (--version)
52-
@contentstack/cli-cm-import/1.26.1 darwin-arm64 node-v22.14.0
50+
@contentstack/cli-cm-import/1.26.2 darwin-x64 node-v22.17.0
5351
$ csdx --help [COMMAND]
5452
USAGE
5553
$ csdx COMMAND
5654
...
5755
```
58-
5956
<!-- usagestop -->
6057

6158
# Commands
6259

6360
<!-- commands -->
64-
65-
- [`csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksimport--c-value--k-value--d-value--a-value---module-value---backup-dir-value---branch-value---import-webhook-status-disablecurrent)
66-
- [`csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksimport--c-value--k-value--d-value--a-value---module-value---backup-dir-value---branch-value---import-webhook-status-disablecurrent)
61+
* [`csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksimport--c-value--k-value--d-value--a-value---module-value---backup-dir-value---branch-value---import-webhook-status-disablecurrent)
62+
* [`csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksimport--c-value--k-value--d-value--a-value---module-value---backup-dir-value---branch-value---import-webhook-status-disablecurrent)
6763

6864
## `csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`
6965

@@ -198,5 +194,4 @@ EXAMPLES
198194
```
199195

200196
_See code: [src/commands/cm/stacks/import.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-import/src/commands/cm/stacks/import.ts)_
201-
202197
<!-- commandsstop -->

0 commit comments

Comments
 (0)