Skip to content

Commit 31143db

Browse files
author
ninadhatkar
committed
Updates package.json for all the plugins and README
1 parent 3e05a13 commit 31143db

13 files changed

Lines changed: 164 additions & 175 deletions

File tree

install-from-code.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ LIGHTPURPLE='\033[1;35m'
1919
LIGHTCYAN='\033[1;36m'
2020
WHITE='\033[1;37m'
2121

22+
echo 'This is out dated script we will update it soon.'
2223

2324
mkdir -p build || { echo -e '\e[31mFailed to create build folder.' && exit 1; }
2425
cp -r dependency build

packages/auth/README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
Authenticate yourself with the CLI
55

6-
[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
7-
[![Version](https://img.shields.io/npm/v/cli.svg)](https://npmjs.org/package/cli)
8-
[![Downloads/week](https://img.shields.io/npm/dw/cli.svg)](https://npmjs.org/package/cli)
96
[![License](https://img.shields.io/npm/l/cli.svg)](https://github.com/contentstack/cli/blob/master/package.json)
107

118
<!-- toc -->
@@ -19,7 +16,7 @@ $ npm install -g @contentstack/cli-auth
1916
$ csdx COMMAND
2017
running command...
2118
$ csdx (-v|--version|version)
22-
@contentstack/cli-auth/0.0.2 darwin-x64 node-v10.19.0
19+
@contentstack/cli-auth/0.0.3 darwin-x64 node-v10.19.0
2320
$ csdx --help [COMMAND]
2421
USAGE
2522
$ csdx COMMAND
@@ -50,7 +47,7 @@ ALIASES
5047
$ csdx login
5148
```
5249

53-
_See code: [src/commands/auth/login.js](https://github.com/contentstack/cli/blob/v0.0.2/src/commands/auth/login.js)_
50+
_See code: [src/commands/auth/login.js](https://github.com/contentstack/cli/blob/v0.0.3/src/commands/auth/login.js)_
5451

5552
## `csdx auth:logout`
5653

@@ -67,7 +64,7 @@ ALIASES
6764
$ csdx logout
6865
```
6966

70-
_See code: [src/commands/auth/logout.js](https://github.com/contentstack/cli/blob/v0.0.2/src/commands/auth/logout.js)_
67+
_See code: [src/commands/auth/logout.js](https://github.com/contentstack/cli/blob/v0.0.3/src/commands/auth/logout.js)_
7168

7269
## `csdx auth:tokens`
7370

@@ -91,7 +88,7 @@ ALIASES
9188
$ csdx tokens
9289
```
9390

94-
_See code: [src/commands/auth/tokens/index.js](https://github.com/contentstack/cli/blob/v0.0.2/src/commands/auth/tokens/index.js)_
91+
_See code: [src/commands/auth/tokens/index.js](https://github.com/contentstack/cli/blob/v0.0.3/src/commands/auth/tokens/index.js)_
9592

9693
## `csdx auth:tokens:add`
9794

@@ -119,7 +116,7 @@ ALIASES
119116
$ csdx tokens:add
120117
```
121118

122-
_See code: [src/commands/auth/tokens/add.js](https://github.com/contentstack/cli/blob/v0.0.2/src/commands/auth/tokens/add.js)_
119+
_See code: [src/commands/auth/tokens/add.js](https://github.com/contentstack/cli/blob/v0.0.3/src/commands/auth/tokens/add.js)_
123120

124121
## `csdx auth:tokens:remove`
125122

@@ -139,7 +136,7 @@ ALIASES
139136
$ csdx tokens:remove
140137
```
141138

142-
_See code: [src/commands/auth/tokens/remove.js](https://github.com/contentstack/cli/blob/v0.0.2/src/commands/auth/tokens/remove.js)_
139+
_See code: [src/commands/auth/tokens/remove.js](https://github.com/contentstack/cli/blob/v0.0.3/src/commands/auth/tokens/remove.js)_
143140

144141
## `csdx auth:whoami`
145142

@@ -153,5 +150,5 @@ ALIASES
153150
$ csdx whoami
154151
```
155152

156-
_See code: [src/commands/auth/whoami.js](https://github.com/contentstack/cli/blob/v0.0.2/src/commands/auth/whoami.js)_
153+
_See code: [src/commands/auth/whoami.js](https://github.com/contentstack/cli/blob/v0.0.3/src/commands/auth/whoami.js)_
157154
<!-- commandsstop -->

packages/auth/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@contentstack/cli-auth",
3-
"description": "Contentstack CLI plugin for authentication",
4-
"version": "0.0.2",
5-
"author": "contentstack",
3+
"description": "Contentstack CLI plugin for authentication activities",
4+
"version": "0.1.0-beta",
5+
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"publishConfig": {
88
"registry": "https://npm.pkg.github.com/"
99
},
1010
"dependencies": {
11-
"@contentstack/cli-command": "latest",
11+
"@contentstack/cli-command": "0.1.0-beta",
1212
"@oclif/command": "^1.6.1",
1313
"@oclif/config": "^1.15.1",
1414
"chalk": "^4.0.0",

packages/contentstack-bulk-publish/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
Bulk publish command for managing entries and assets.
55

6-
[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
7-
[![Version](https://img.shields.io/npm/v/bulk-publish.svg)](https://npmjs.org/package/bulk-publish)
8-
[![Downloads/week](https://img.shields.io/npm/dw/bulk-publish.svg)](https://npmjs.org/package/bulk-publish)
96
[![License](https://img.shields.io/npm/l/bulk-publish.svg)](https://github.com/abhinav-from-contentstack/bulk-publish/blob/master/package.json)
107

118
<!-- toc -->
@@ -19,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-bulk-publish
1916
$ csdx COMMAND
2017
running command...
2118
$ csdx (-v|--version|version)
22-
@contentstack/cli-cm-bulk-publish/0.0.20 linux-x64 node-v12.18.4
19+
@contentstack/cli-cm-bulk-publish/0.1.0-beta darwin-x64 node-v10.19.0
2320
$ csdx --help [COMMAND]
2421
USAGE
2522
$ csdx COMMAND
@@ -50,7 +47,7 @@ USAGE
5047
$ csdx cm:bulk-publish
5148
```
5249

53-
_See code: [src/commands/cm/bulk-publish/index.js](https://github.com/contentstack/cli/blob/v0.0.20/src/commands/cm/bulk-publish/index.js)_
50+
_See code: [src/commands/cm/bulk-publish/index.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/bulk-publish/index.js)_
5451

5552
## `csdx cm:bulk-publish:add-fields -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]`
5653

@@ -98,7 +95,7 @@ EXAMPLES
9895
csdx cm:bulk-publish:add-fields -r [LOG FILE NAME]
9996
```
10097

101-
_See code: [src/commands/cm/bulk-publish/add-fields.js](https://github.com/contentstack/cli/blob/v0.0.20/src/commands/cm/bulk-publish/add-fields.js)_
98+
_See code: [src/commands/cm/bulk-publish/add-fields.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/bulk-publish/add-fields.js)_
10299

103100
## `csdx cm:bulk-publish:assets -e [ENVIRONMENT 1] [ENVIRONMENT 2] -u [FOLDER_UID] --[no-]bulkPublish -a [MANAGEMENT TOKEN ALIAS]`
104101

@@ -145,7 +142,7 @@ EXAMPLES
145142
csdx cm:bulk-publish:assets -r [LOG FILE NAME]
146143
```
147144

148-
_See code: [src/commands/cm/bulk-publish/assets.js](https://github.com/contentstack/cli/blob/v0.0.20/src/commands/cm/bulk-publish/assets.js)_
145+
_See code: [src/commands/cm/bulk-publish/assets.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/bulk-publish/assets.js)_
149146

150147
## `csdx cm:bulk-publish:clear`
151148

@@ -160,7 +157,7 @@ OPTIONS
160157
-y, --yes Delete all files without asking for confirmation
161158
```
162159

163-
_See code: [src/commands/cm/bulk-publish/clear.js](https://github.com/contentstack/cli/blob/v0.0.20/src/commands/cm/bulk-publish/clear.js)_
160+
_See code: [src/commands/cm/bulk-publish/clear.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/bulk-publish/clear.js)_
164161

165162
## `csdx cm:bulk-publish:configure`
166163

@@ -185,7 +182,7 @@ DESCRIPTION
185182
EXAMPLE : cm:bulk-publish:configure -a [MANAGEMENT TOKEN Alias]
186183
```
187184

188-
_See code: [src/commands/cm/bulk-publish/configure.js](https://github.com/contentstack/cli/blob/v0.0.20/src/commands/cm/bulk-publish/configure.js)_
185+
_See code: [src/commands/cm/bulk-publish/configure.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/bulk-publish/configure.js)_
189186

190187
## `csdx cm:bulk-publish:cross-publish -t [CONTENT TYPE] -e [ENVIRONMENT] -d [DESTINATION ENVIRONMENT] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -x [DELIVERY TOKEN]`
191188

@@ -236,7 +233,7 @@ EXAMPLES
236233
csdx cm:bulk-publish:cross-publish -r [LOG FILE NAME]
237234
```
238235

239-
_See code: [src/commands/cm/bulk-publish/cross-publish.js](https://github.com/contentstack/cli/blob/v0.0.20/src/commands/cm/bulk-publish/cross-publish.js)_
236+
_See code: [src/commands/cm/bulk-publish/cross-publish.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/bulk-publish/cross-publish.js)_
240237

241238
## `csdx cm:bulk-publish:entries -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]`
242239

@@ -288,7 +285,7 @@ EXAMPLES
288285
csdx cm:bulk-publish:entries -r [LOG FILE NAME]
289286
```
290287

291-
_See code: [src/commands/cm/bulk-publish/entries.js](https://github.com/contentstack/cli/blob/v0.0.20/src/commands/cm/bulk-publish/entries.js)_
288+
_See code: [src/commands/cm/bulk-publish/entries.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/bulk-publish/entries.js)_
292289

293290
## `csdx cm:bulk-publish:entry-edits -t [CONTENT TYPE 1] [CONTENT TYPE 2] -s [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]`
294291

@@ -339,7 +336,7 @@ EXAMPLES
339336
csdx cm:bulk-publish:entry-edits -r [LOG FILE NAME]
340337
```
341338

342-
_See code: [src/commands/cm/bulk-publish/entry-edits.js](https://github.com/contentstack/cli/blob/v0.0.20/src/commands/cm/bulk-publish/entry-edits.js)_
339+
_See code: [src/commands/cm/bulk-publish/entry-edits.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/bulk-publish/entry-edits.js)_
343340

344341
## `csdx cm:bulk-publish:nonlocalized-field-changes -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]`
345342

@@ -387,7 +384,7 @@ EXAMPLES
387384
csdx cm:bulk-publish:nonlocalized-field-changes -r [LOG FILE NAME]
388385
```
389386

390-
_See code: [src/commands/cm/bulk-publish/nonlocalized-field-changes.js](https://github.com/contentstack/cli/blob/v0.0.20/src/commands/cm/bulk-publish/nonlocalized-field-changes.js)_
387+
_See code: [src/commands/cm/bulk-publish/nonlocalized-field-changes.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/bulk-publish/nonlocalized-field-changes.js)_
391388

392389
## `csdx cm:bulk-publish:revert`
393390

@@ -415,7 +412,7 @@ EXAMPLES
415412
cm:bulk-publish:revert -r [LOG FILE NAME]
416413
```
417414

418-
_See code: [src/commands/cm/bulk-publish/revert.js](https://github.com/contentstack/cli/blob/v0.0.20/src/commands/cm/bulk-publish/revert.js)_
415+
_See code: [src/commands/cm/bulk-publish/revert.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/bulk-publish/revert.js)_
419416

420417
## `csdx cm:bulk-publish:unpublish -b -t [CONTENT TYPE] -e [ENVIRONMENT] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -x [DELIVERY TOKEN]`
421418

@@ -460,6 +457,9 @@ DESCRIPTION
460457
not used,
461458
then all entries from all content types will be unpublished from the source environment
462459
460+
--onlyAssets can be used to unpublish only assets and --onlyEntries can be used to unpublish only entries.
461+
(--onlyAssets and --onlyEntries cannot be used together at the same time)
462+
463463
EXAMPLES
464464
Using --config or -c flag
465465
Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
@@ -485,7 +485,7 @@ EXAMPLES
485485
(Will unpublish only entries, (from CONTENT TYPE) from the source environment)
486486
```
487487

488-
_See code: [src/commands/cm/bulk-publish/unpublish.js](https://github.com/contentstack/cli/blob/v0.0.20/src/commands/cm/bulk-publish/unpublish.js)_
488+
_See code: [src/commands/cm/bulk-publish/unpublish.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/bulk-publish/unpublish.js)_
489489

490490
## `csdx cm:bulk-publish:unpublished-entries -b -t [CONTENT TYPES] -e [ENVIRONMENTS] -l [LOCALES] -a [MANAGEMENT TOKEN ALIAS]`
491491

@@ -535,5 +535,5 @@ EXAMPLES
535535
csdx cm:bulk-publish:unpublished-entries -r [LOG FILE NAME]
536536
```
537537

538-
_See code: [src/commands/cm/bulk-publish/unpublished-entries.js](https://github.com/contentstack/cli/blob/v0.0.20/src/commands/cm/bulk-publish/unpublished-entries.js)_
538+
_See code: [src/commands/cm/bulk-publish/unpublished-entries.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/bulk-publish/unpublished-entries.js)_
539539
<!-- commandsstop -->

packages/contentstack-bulk-publish/package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
{
22
"name": "@contentstack/cli-cm-bulk-publish",
3-
"description": "Contentstack bulk publish script",
4-
"version": "0.0.21",
5-
"author": "Abhinav Gupta @abhinav-from-contentstack",
6-
"bugs": "https://github.com/abhinav-from-contentstack/bulk-publish/issues",
3+
"description": "Contentstack CLI plugin for bulk publish actions",
4+
"version": "0.1.0-beta",
5+
"author": "Contentstack",
6+
"bugs": "https://github.com/contentstack/cli/issues",
77
"dependencies": {
8-
"@contentstack/cli": "latest",
9-
"@contentstack/cli-command": "latest",
10-
"@contentstack/management": "latest",
8+
"@contentstack/cli-command": "0.1.0-beta",
9+
"@contentstack/management": "1.0.0",
1110
"@oclif/command": "^1.7.0",
1211
"@oclif/config": "^1.16.0",
13-
"axios": "^0.19.2",
1412
"bluebird": "^3.7.2",
1513
"configstore": "^5.0.1",
1614
"lodash": "^4.17.15",
1715
"nock": "^13.0.2",
18-
"path": "^0.12.7",
1916
"request": "^2.88.2",
2017
"winston": "^3.3.3"
2118
},

packages/contentstack-bulk-publish/src/util/contentstack-management.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/contentstack-command/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "@contentstack/cli-command",
3-
"version": "0.0.1",
3+
"version": "0.1.0-beta",
44
"description": "Base class for Contentstack command",
55
"main": "index.js",
6+
"author": "Contentstack",
67
"scripts": {
78
"test": "nyc mocha --forbid-only \\\"test/**/*.test.js\\\""
89
},
910
"repository": {
1011
"type": "git",
1112
"url": "git+https://github.com/contentstack/cli.git"
1213
},
13-
"author": "***REMOVED*** @***REMOVED***",
1414
"license": "MIT",
1515
"bugs": "https://github.com/contentstack/cli/issues",
1616
"homepage": "https://github.com/contentstack/cli#readme",

packages/contentstack-export/README.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
Use contentstack-export package to export the content from a stack
55

6-
[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
7-
[![Version](https://img.shields.io/npm/v/contentstack-export.svg)](https://npmjs.org/package/contentstack-export)
8-
[![Downloads/week](https://img.shields.io/npm/dw/contentstack-export.svg)](https://npmjs.org/package/contentstack-export)
96
[![License](https://img.shields.io/npm/l/contentstack-export.svg)](https://github.com/contentstack/cli/blob/master/package.json)
107

118
<!-- toc -->
@@ -19,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-export
1916
$ csdx COMMAND
2017
running command...
2118
$ csdx (-v|--version|version)
22-
@contentstack/cli-cm-export/0.0.1 darwin-x64 node-v10.19.0
19+
@contentstack/cli-cm-export/0.1.0-beta darwin-x64 node-v10.19.0
2320
$ csdx --help [COMMAND]
2421
USAGE
2522
$ csdx COMMAND
@@ -32,7 +29,7 @@ USAGE
3229

3330
## `csdx cm:export`
3431

35-
Export utils for exporting the content from stack
32+
Export content from a stack
3633

3734
```
3835
USAGE
@@ -41,11 +38,11 @@ USAGE
4138
OPTIONS
4239
-A, --auth-token to use auth token
4340
-a, --management-token-alias=management-token-alias alias of the management token
44-
-c, --config=config [optional]path of the config
41+
-c, --config=config [optional] path of the config
4542
-d, --data=data path or location to store the data
46-
-l, --master-lang=master-lang code of the source stacks master Language
43+
-l, --master-lang=master-lang code of the source stack's master Language
4744
-m, --module=module [optional] specific module name
48-
-s, --stack-uid=stack-uid API key of source stack
45+
-s, --stack-uid=stack-uid API key of the source stack
4946
5047
DESCRIPTION
5148
...
@@ -55,11 +52,11 @@ EXAMPLES
5552
csdx cm:export -A
5653
csdx cm:export -A -l 'master-language' -s 'stack_ApiKey' -d 'path/of/export/destination/dir'
5754
csdx cm:export -A -c 'path/of/config/dir'
58-
csdx cm:export -a 'alias of managment_token'
59-
csdx cm:export -a "alias of managment_token" -l "master-language" -d "path/of/export/destination/dir"
60-
csdx cm:export -a "alias of managment_token" -c "path/of/config/file"
55+
csdx cm:export -a 'management_token_alias'
56+
csdx cm:export -a "management_token_alias" -l "master-language" -d "path/of/export/destination/dir"
57+
csdx cm:export -a "management_token_alias" -c "path/of/config/file"
6158
csdx cm:export -A -m "single module name"
6259
```
6360

64-
_See code: [src/commands/cm/export.js](https://github.com/contentstack/cli/blob/v0.0.1/src/commands/cm/export.js)_
61+
_See code: [src/commands/cm/export.js](https://github.com/contentstack/cli/blob/v0.1.0-beta/src/commands/cm/export.js)_
6562
<!-- commandsstop -->

packages/contentstack-export/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
{
22
"name": "@contentstack/cli-cm-export",
3-
"description": "It is contentstack export plugin",
4-
"version": "0.0.1",
5-
"author": "contentstack",
3+
"description": "Contentstack CLI plugin to export content from stack",
4+
"version": "0.1.0-beta",
5+
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"publishConfig": {
88
"registry": "https://npm.pkg.github.com/"
99
},
1010
"dependencies": {
11-
"@contentstack/management": "latest",
11+
"@contentstack/management": "1.0.0",
1212
"@oclif/command": "^1.6.1",
1313
"@oclif/config": "^1.15.1",
14-
"assert": "^2.0.0",
15-
"@contentstack/cli-command": "latest",
14+
"@contentstack/cli-command": "0.1.0-beta",
1615
"axios": "^0.19.2",
1716
"bluebird": "^3.7.2",
1817
"cli-ux": "^5.4.6",
@@ -23,10 +22,11 @@
2322
"path": "^0.12.7",
2423
"proxyquire": "^2.1.3",
2524
"request": "^2.88.2",
26-
"sinon": "^9.0.2",
2725
"winston": "^2.2.0"
2826
},
2927
"devDependencies": {
28+
"assert": "^2.0.0",
29+
"sinon": "^9.0.2",
3030
"@oclif/dev-cli": "^1.22.2",
3131
"@oclif/plugin-help": "^3.0.1",
3232
"@oclif/test": "^1.2.6",

0 commit comments

Comments
 (0)