Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite changes #1056

Merged
merged 73 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from 64 commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
3625a45
enable new structure
Aug 10, 2023
3ef9d12
Merge branch 'development' of github.com:contentstack/cli into export…
Aug 21, 2023
48b541a
fix: recursive backup directory issue
aman19K Aug 21, 2023
5deaa26
fix: export & import logger path
aman19K Aug 22, 2023
06b66fa
fix: entries helper
aman19K Aug 23, 2023
c1ca3de
Merge pull request #991 from contentstack/fix/CS-40582
aman19K Aug 23, 2023
73ba045
fixed
Aug 23, 2023
247c888
fixes
Aug 23, 2023
3d1629e
fix: handle subdirectory error
aman19K Aug 24, 2023
b785809
Merge branch 'export-import-rewrite' into fix/CS-40552
aman19K Aug 24, 2023
66baec2
entries fixes
Aug 24, 2023
bb1ba62
refactor: backup directory
aman19K Aug 25, 2023
3e74d3d
Merge pull request #990 from contentstack/fix/CS-40552
aman19K Aug 25, 2023
4643a13
publish fixes
Aug 25, 2023
6495151
Merge branch 'export-import-rewrite' of github.com:contentstack/cli i…
Aug 28, 2023
b12df65
backup warning message update
Aug 28, 2023
0ece60d
Merge branch 'export-import-rewrite' of github.com:contentstack/cli i…
Aug 28, 2023
652a5a1
backup warning message updated
Aug 28, 2023
f22f64c
Merge pull request #998 from contentstack/fix/CS-40960
shafeeqd959 Aug 28, 2023
983395f
merged latest
Aug 28, 2023
defc6ad
merged latest with dev
Aug 28, 2023
4c7cc92
added json rte fix
Aug 28, 2023
1883af5
refactor: enable environment rewrite
aman19K Aug 28, 2023
4eb52ee
fix: management sdk version update
aman19K Aug 28, 2023
dcf7d01
export import config update
Aug 28, 2023
29bbf0b
config updates
Aug 29, 2023
d042008
fix: import log path & handle errors
aman19K Aug 29, 2023
05d7058
Merge pull request #1006 from contentstack/fix/CS-40297
shafeeqd959 Aug 29, 2023
a6b3575
message updated
Aug 29, 2023
d0618bc
refactor: enable environment new structure in export
aman19K Aug 29, 2023
8a7a451
refactor: remove unnecessary log from module-exporter
aman19K Aug 29, 2023
ff3502a
fixed
Aug 30, 2023
44b43c7
sample config update
Aug 30, 2023
7f440ed
merged latest changes
Aug 30, 2023
a6b3ffa
Merge pull request #1008 from contentstack/fix/CS-40960
shafeeqd959 Aug 30, 2023
01b93da
fix: workflow infinite loop issue
aman19K Sep 1, 2023
77d616c
Merge pull request #1015 from contentstack/fix/CS-41160
aman19K Sep 1, 2023
c455693
refactor: remove import config
aman19K Sep 4, 2023
eee8e22
Merge pull request #1021 from contentstack/refactor/CS-41107-remove-c…
aman19K Sep 4, 2023
ea4de37
fix
Sep 5, 2023
b981158
Merge branch 'export-import-rewrite' of github.com:contentstack/cli i…
Sep 5, 2023
4dd7c86
Merge pull request #1023 from contentstack/fix/CS41169
shafeeqd959 Sep 5, 2023
20e9075
merged development
Sep 5, 2023
c1573f7
fixed conflict
Sep 6, 2023
58b9eb0
message upted
Sep 6, 2023
ecca512
Merge branch 'development' of github.com:contentstack/cli into export…
Sep 6, 2023
eacd3cc
versions updated
Sep 8, 2023
30f3328
Merge branch 'development' of github.com:contentstack/cli into export…
Sep 12, 2023
c7bb5f0
Used Axios Instance in both import and export to replace with httpCli…
cs-raj Sep 12, 2023
ba9bc43
Merge branch 'development' into bugfix/CS-40469
cs-raj Sep 12, 2023
df9c3d7
fix: added fix for mapper file issue
abhinav-from-contentstack Sep 12, 2023
e83e0ef
Merge branch 'export-import-rewrite' into fix/CS-41308
abhinav-from-contentstack Sep 12, 2023
68660ce
Merge pull request #1037 from contentstack/fix/CS-41308
shafeeqd959 Sep 13, 2023
60cc004
merged latest
Sep 14, 2023
c5a1b15
merged latest changes
Sep 18, 2023
813b596
merged latest
Sep 20, 2023
8b933fb
update graphql version
Sep 20, 2023
bdd2d5e
merge latest
Sep 21, 2023
34e74fe
Merge branch 'development' of github.com:contentstack/cli into export…
Sep 21, 2023
0682034
Merge branch 'development' into bugfix/CS-40469
cs-raj Sep 25, 2023
66b461f
Merged Development into branch and version bump
cs-raj Sep 25, 2023
5ba00e6
Merge pull request #1030 from contentstack/export-import-rewrite
shafeeqd959 Sep 25, 2023
1299047
fix: removed resolve
aman19K Sep 25, 2023
3f1cb58
Merge branch 'development' into bugfix/CS-40469
cs-raj Sep 25, 2023
cc5403f
Removed the endpoint and using only host to create the axiosInstance
cs-raj Sep 25, 2023
8ed9090
updated lock files
Sep 25, 2023
6850269
node version updated
Sep 25, 2023
69946a0
Merge pull request #1055 from contentstack/export-import-rewrite
shafeeqd959 Sep 25, 2023
2d4e8d2
Merge branch 'development' into refactor/CS-41427
aman19K Sep 25, 2023
fc2f329
Merge branch 'development' into bugfix/CS-40469
cs-raj Sep 25, 2023
6063b47
Merge pull request #1054 from contentstack/refactor/CS-41427
shafeeqd959 Sep 25, 2023
681b8bd
Merge branch 'development' into bugfix/CS-40469
cs-raj Sep 26, 2023
5647513
Merge pull request #1036 from contentstack/bugfix/CS-40469
cs-raj Sep 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
220 changes: 137 additions & 83 deletions package-lock.json

Large diffs are not rendered by default.

33 changes: 19 additions & 14 deletions packages/contentstack-auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,44 @@ It is Contentstack’s CLI plugin to perform authentication-related activities.
[![License](https://img.shields.io/npm/l/@contentstack/cli)](https://github.com/contentstack/cli/blob/main/LICENSE)

<!-- toc -->
* [@contentstack/cli-auth](#contentstackcli-auth)
* [Usage](#usage)
* [Commands](#commands)

- [@contentstack/cli-auth](#contentstackcli-auth)
- [Usage](#usage)
- [Commands](#commands)
<!-- tocstop -->

# Usage

<!-- usage -->

```sh-session
$ npm install -g @contentstack/cli-auth
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-auth/1.3.13 darwin-x64 node-v20.7.0
@contentstack/cli-auth/1.3.13 darwin-arm64 node-v20.7.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
...
```

<!-- usagestop -->

# Commands

<!-- commands -->
* [`csdx auth:login`](#csdx-authlogin)
* [`csdx auth:logout`](#csdx-authlogout)
* [`csdx auth:tokens`](#csdx-authtokens)
* [`csdx auth:tokens:add [-a <value>] [--delivery] [--management] [-e <value>] [-k <value>] [-y] [--token <value>]`](#csdx-authtokensadd--a-value---delivery---management--e-value--k-value--y---token-value)
* [`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`](#csdx-authlogin)
- [`csdx auth:logout`](#csdx-authlogout)
- [`csdx auth:tokens`](#csdx-authtokens)
- [`csdx auth:tokens:add [-a <value>] [--delivery] [--management] [-e <value>] [-k <value>] [-y] [--token <value>]`](#csdx-authtokensadd--a-value---delivery---management--e-value--k-value--y---token-value)
- [`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`

Expand Down Expand Up @@ -324,4 +328,5 @@ ALIASES
EXAMPLES
$ csdx auth:whoami
```

<!-- commandsstop -->
4 changes: 2 additions & 2 deletions packages/contentstack-auth/bin/dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

(async () => {
const { execute } = require('@contentstack/cli-utilities');
await execute({ type: 'cjs', development: true, dir: __dirname });
})();
await execute({ type: 'cjs', dir: __dirname, development: true });
})();
13 changes: 9 additions & 4 deletions packages/contentstack-bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,27 @@ Contentstack CLI’s “Bootstrap” plugin enables you to automate the process
This means that all the required steps such as stack, environment, and content type creation, entry and asset publishing are performed just by using a single command.

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)

- [Usage](#usage)
- [Commands](#commands)
<!-- tocstop -->

# Usage

<!-- usage -->

```sh-session
$ npm install -g @contentstack/cli-cm-bootstrap
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-cm-bootstrap/1.4.16 darwin-x64 node-v20.7.0
@contentstack/cli-cm-bootstrap/1.5.0 darwin-arm64 node-v20.7.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
...
```

<!-- usagestop -->

```sh-session
Expand All @@ -36,7 +39,8 @@ USAGE
# Commands

<!-- commands -->
* [`csdx cm:bootstrap`](#csdx-cmbootstrap)

- [`csdx cm:bootstrap`](#csdx-cmbootstrap)

## `csdx cm:bootstrap`

Expand Down Expand Up @@ -74,4 +78,5 @@ EXAMPLES
```

_See code: [src/commands/cm/bootstrap.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-bootstrap/src/commands/cm/bootstrap.ts)_

<!-- commandsstop -->
6 changes: 6 additions & 0 deletions packages/contentstack-bootstrap/bin/dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env node

(async () => {
const { execute } = require('@contentstack/cli-utilities');
await execute({ type: 'cjs', dir: __dirname, development: true });
})();
3 changes: 3 additions & 0 deletions packages/contentstack-bootstrap/bin/dev.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\dev" %*
4 changes: 2 additions & 2 deletions packages/contentstack-bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-bootstrap",
"description": "Bootstrap contentstack apps",
"version": "1.4.16",
"version": "1.5.0",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"scripts": {
Expand All @@ -17,7 +17,7 @@
"test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\""
},
"dependencies": {
"@contentstack/cli-cm-seed": "~1.4.16",
"@contentstack/cli-cm-seed": "~1.5.0",
"@contentstack/cli-command": "~1.2.12",
"@contentstack/cli-utilities": "~1.5.2",
"inquirer": "8.2.4",
Expand Down
23 changes: 14 additions & 9 deletions packages/contentstack-branches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ It is Contentstack’s CLI plugin to compare and merge content.
[![License](https://img.shields.io/npm/l/@contentstack/cli)](https://github.com/contentstack/cli/blob/main/LICENSE)

<!-- toc -->
* [@contentstack/cli-cm-branches](#contentstackcli-cm-branches)
* [Usage](#usage)
* [Commands](#commands)

- [@contentstack/cli-cm-branches](#contentstackcli-cm-branches)
- [Usage](#usage)
- [Commands](#commands)
<!-- tocstop -->

For switching to EU region update the hosts at config/default.js
Expand All @@ -32,27 +33,30 @@ For switching to AZURE-NA region update the hosts at config/default.js
# Usage

<!-- usage -->

```sh-session
$ npm install -g @contentstack/cli-cm-branches
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-cm-branches/1.0.13 darwin-x64 node-v20.7.0
@contentstack/cli-cm-branches/1.0.13 darwin-arm64 node-v20.7.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
...
```

<!-- usagestop -->

# Commands

<!-- commands -->
* [`csdx cm:branches`](#csdx-cmbranches)
* [`csdx cm:branches:create`](#csdx-cmbranchescreate)
* [`csdx cm:branches:delete [-uid <value>] [-k <value>]`](#csdx-cmbranchesdelete--uid-value--k-value)
* [`csdx cm:branches:diff [--base-branch <value>] [--compare-branch <value>] [-k <value>][--module <value>]`](#csdx-cmbranchesdiff---base-branch-value---compare-branch-value--k-value--module-value)
* [`csdx cm:branches:merge [-k <value>][--compare-branch <value>] [--no-revert] [--export-summary-path <value>] [--use-merge-summary <value>] [--comment <value>] [--base-branch <value>]`](#csdx-cmbranchesmerge--k-value--compare-branch-value---no-revert---export-summary-path-value---use-merge-summary-value---comment-value---base-branch-value)

- [`csdx cm:branches`](#csdx-cmbranches)
- [`csdx cm:branches:create`](#csdx-cmbranchescreate)
- [`csdx cm:branches:delete [-uid <value>] [-k <value>]`](#csdx-cmbranchesdelete--uid-value--k-value)
- [`csdx cm:branches:diff [--base-branch <value>] [--compare-branch <value>] [-k <value>][--module <value>]`](#csdx-cmbranchesdiff---base-branch-value---compare-branch-value--k-value--module-value)
- [`csdx cm:branches:merge [-k <value>][--compare-branch <value>] [--no-revert] [--export-summary-path <value>] [--use-merge-summary <value>] [--comment <value>] [--base-branch <value>]`](#csdx-cmbranchesmerge--k-value--compare-branch-value---no-revert---export-summary-path-value---use-merge-summary-value---comment-value---base-branch-value)

## `csdx cm:branches`

Expand Down Expand Up @@ -222,4 +226,5 @@ EXAMPLES
```

_See code: [src/commands/cm/branches/merge.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-export/src/commands/cm/branches/merge.ts)_

<!-- commandsstop -->
Loading
Loading