@contentstack/cli-cm-bulk-publish 0.1.1-beta.5 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +522 -318
  3. package/oclif.manifest.json +1 -1
  4. package/package.json +26 -11
  5. package/src/commands/cm/assets/publish.js +243 -0
  6. package/src/commands/cm/assets/unpublish.js +179 -0
  7. package/src/commands/cm/bulk-publish/cross-publish.js +181 -67
  8. package/src/commands/cm/bulk-publish/index.js +5 -6
  9. package/src/commands/cm/entries/publish-modified.js +197 -0
  10. package/src/commands/cm/entries/publish-non-localized-fields.js +208 -0
  11. package/src/commands/cm/entries/publish-only-unpublished.js +109 -0
  12. package/src/commands/cm/entries/publish.js +254 -0
  13. package/src/commands/cm/entries/unpublish.js +184 -0
  14. package/src/commands/cm/entries/update-and-publish.js +191 -0
  15. package/src/commands/cm/stacks/publish-clear-logs.js +82 -0
  16. package/src/commands/cm/stacks/publish-configure.js +46 -0
  17. package/src/commands/cm/stacks/publish-revert.js +102 -0
  18. package/src/commands/cm/stacks/publish.js +110 -0
  19. package/src/commands/cm/stacks/unpublish.js +282 -0
  20. package/src/config/index.js +18 -57
  21. package/src/consumer/publish.js +589 -362
  22. package/src/producer/add-fields.js +204 -179
  23. package/src/producer/cross-publish.js +177 -99
  24. package/src/producer/nonlocalized-field-changes.js +225 -194
  25. package/src/producer/publish-assets.js +97 -83
  26. package/src/producer/publish-edits.js +113 -88
  27. package/src/producer/publish-entries.js +121 -90
  28. package/src/producer/publish-unpublished-env.js +114 -90
  29. package/src/producer/revert.js +261 -230
  30. package/src/producer/unpublish.js +154 -97
  31. package/src/services/publish-only-unpublished.js +130 -0
  32. package/src/util/client.js +14 -15
  33. package/src/util/command-helper.js +25 -0
  34. package/src/util/fs.js +10 -11
  35. package/src/util/index.js +38 -36
  36. package/src/util/logger.js +21 -25
  37. package/src/util/queue.js +13 -13
  38. package/src/util/retryfailed.js +8 -4
  39. package/src/util/store.js +43 -47
  40. package/src/commands/cm/bulk-publish/add-fields.js +0 -122
  41. package/src/commands/cm/bulk-publish/assets.js +0 -122
  42. package/src/commands/cm/bulk-publish/clear.js +0 -65
  43. package/src/commands/cm/bulk-publish/configure.js +0 -44
  44. package/src/commands/cm/bulk-publish/entries.js +0 -131
  45. package/src/commands/cm/bulk-publish/entry-edits.js +0 -129
  46. package/src/commands/cm/bulk-publish/nonlocalized-field-changes.js +0 -121
  47. package/src/commands/cm/bulk-publish/revert.js +0 -81
  48. package/src/commands/cm/bulk-publish/unpublish.js +0 -169
  49. package/src/commands/cm/bulk-publish/unpublished-entries.js +0 -127
  50. package/src/util/request.js +0 -59
package/README.md CHANGED
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bulk-publish
18
18
  $ csdx COMMAND
19
19
  running command...
20
20
  $ csdx (-v|--version|version)
21
- @contentstack/cli-cm-bulk-publish/0.1.1-beta.5 linux-x64 node-v12.22.7
21
+ @contentstack/cli-cm-bulk-publish/1.0.1 darwin-arm64 node-v16.17.0
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -29,586 +29,790 @@ USAGE
29
29
  # Commands
30
30
 
31
31
  <!-- commands -->
32
+ * [`csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`](#csdx-cmassetspublish--a-value---retry-failed-value--e-value---folder-uid-value---bulk-publish-value--c-value--y---locales-value---branch-value---delivery-token-value---source-env-value)
33
+ * [`csdx cm:assets:unpublish`](#csdx-cmassetsunpublish)
32
34
  * [`csdx cm:bulk-publish`](#csdx-cmbulk-publish)
33
- * [`csdx cm:bulk-publish:add-fields`](#csdx-cmbulk-publishadd-fields)
34
- * [`csdx cm:bulk-publish:assets`](#csdx-cmbulk-publishassets)
35
- * [`csdx cm:bulk-publish:clear`](#csdx-cmbulk-publishclear)
36
- * [`csdx cm:bulk-publish:configure`](#csdx-cmbulk-publishconfigure)
37
- * [`csdx cm:bulk-publish:cross-publish`](#csdx-cmbulk-publishcross-publish)
38
- * [`csdx cm:bulk-publish:entries`](#csdx-cmbulk-publishentries)
39
- * [`csdx cm:bulk-publish:entry-edits`](#csdx-cmbulk-publishentry-edits)
40
- * [`csdx cm:bulk-publish:nonlocalized-field-changes`](#csdx-cmbulk-publishnonlocalized-field-changes)
41
- * [`csdx cm:bulk-publish:revert`](#csdx-cmbulk-publishrevert)
42
- * [`csdx cm:bulk-publish:unpublish`](#csdx-cmbulk-publishunpublish)
43
- * [`csdx cm:bulk-publish:unpublished-entries`](#csdx-cmbulk-publishunpublished-entries)
44
-
45
- ## `csdx cm:bulk-publish`
46
-
47
- Bulk Publish script for managing entries and assets
35
+ * [`csdx cm:bulk-publish:cross-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-type <value>] [--locales <value>] [--source-env <value>] [--environments <value>] [--delivery-token <value>] [-c <value>] [-y] [--branch <value>] [--onlyAssets] [--onlyEntries]`](#csdx-cmbulk-publishcross-publish--a-value---retry-failed-value---bulk-publish-value---content-type-value---locales-value---source-env-value---environments-value---delivery-token-value--c-value--y---branch-value---onlyassets---onlyentries)
36
+ * [`csdx cm:entries:publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--publish-all-content-types] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`](#csdx-cmentriespublish--a-value---retry-failed-value---bulk-publish-value---publish-all-content-types---content-types-value---locales-value--e-value--c-value--y---branch-value---delivery-token-value---source-env-value)
37
+ * [`csdx cm:entries:publish-modified [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`](#csdx-cmentriespublish-modified--a-value---retry-failed-value---bulk-publish-value---source-env-value---content-types-value---locales-value--e-value--c-value--y---branch-value)
38
+ * [`csdx cm:entries:publish-non-localized-fields [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`](#csdx-cmentriespublish-non-localized-fields--a-value---retry-failed-value---bulk-publish-value---source-env-value---content-types-value--e-value--c-value--y---branch-value)
39
+ * [`csdx cm:entries:publish-only-unpublished [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`](#csdx-cmentriespublish-only-unpublished--a-value---retry-failed-value---bulk-publish-value---source-env-value---content-types-value---locales-value--e-value--c-value--y---branch-value)
40
+ * [`csdx cm:entries:unpublish`](#csdx-cmentriesunpublish)
41
+ * [`csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]`](#csdx-cmentriesupdate-and-publish--a-value---retry-failed-value---bulk-publish-value---content-types-value--t-value--e-value--c-value--y---locales-value---branch-value)
42
+ * [`csdx cm:stacks:publish`](#csdx-cmstackspublish)
43
+ * [`csdx cm:stacks:publish-clear-logs`](#csdx-cmstackspublish-clear-logs)
44
+ * [`csdx cm:stacks:publish-configure`](#csdx-cmstackspublish-configure)
45
+ * [`csdx cm:stacks:publish-revert`](#csdx-cmstackspublish-revert)
46
+ * [`csdx csdx cm:stacks:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>] [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>] [--only-assets] [--only-entries]`](#csdx-csdx-cmstacksunpublish--a-value--e-value--c-value--y---locale-value---branch-value---retry-failed-value---bulk-unpublish-value---content-type-value---delivery-token-value---only-assets---only-entries)
47
+
48
+ ## `csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`
49
+
50
+ Publish assets to the specified environments
48
51
 
49
52
  ```
50
53
  USAGE
51
- $ csdx cm:bulk-publish
52
- ```
54
+ $ csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish
55
+ <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]
53
56
 
54
- _See code: [src/commands/cm/bulk-publish/index.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/index.js)_
57
+ OPTIONS
58
+ -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
59
+ is selected)
55
60
 
56
- ## `csdx cm:bulk-publish:add-fields`
61
+ -a, --alias=alias Alias(name) for the management token
57
62
 
58
- Add fields from updated content types to their respective entries
63
+ -c, --config=config Path to the config file
59
64
 
60
- ```
61
- USAGE
62
- $ csdx cm:bulk-publish:add-fields
65
+ -e, --environments=environments Environments where assets will be published
63
66
 
64
- OPTIONS
65
- -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
66
- -a, --alias=alias Alias for the management token to be used
67
+ -l, --locales=locales Locales to where assets will be published
67
68
 
68
- -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
69
- bulkpublish API will be used for publishing the entries
69
+ -y, --yes Agree to process the command with the current configuration
70
70
 
71
- -c, --config=config Path to config file to be used
71
+ --bulk-publish=bulk-publish [default: true] By default this flag is set as true. It indicates that contentstack's
72
+ bulkpublish API will be used to publish the assets
72
73
 
73
- -e, --environments=environments Environments to which entries need to be published
74
+ --delivery-token=delivery-token Delivery token for source environment
74
75
 
75
- -l, --locales=locales Locales to which entries need to be published
76
+ --folder-uid=folder-uid [default: cs_root] Folder-uid from where the assets will be published
76
77
 
77
- -r, --retryFailed=retryFailed Retry publishing failed entries from the logfile (optional, overrides all other
78
+ --retry-failed=retry-failed Retry publishing failed assets from the logfile (optional, will override all other
78
79
  flags)
79
80
 
80
- -t, --contentTypes=contentTypes The Content-Types from which entries need to be published
81
-
82
- -y, --yes Agree to process the command with the current configuration
81
+ --source-env=source-env Source environment
83
82
 
84
83
  DESCRIPTION
85
- The add-fields command is used for updating already existing entries with the updated schema of their respective
86
- Content Type
84
+ The assets command is used to publish assets from the specified stack, to the specified environments
87
85
 
88
- Content Types, Environments and Locales are required for executing the command successfully
86
+ Note: Environment(s) and Locale(s) are required to execute the command successfully
89
87
  But, if retryFailed flag is set, then only a logfile is required
90
88
 
89
+ ALIASES
90
+ $ csdx cm:bulk-publish:assets
91
+
91
92
  EXAMPLES
92
93
  General Usage
93
- csdx cm:bulk-publish:add-fields -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1]
94
- [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
94
+ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN
95
+ ALIAS]
95
96
 
96
97
  Using --config or -c flag
97
- Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
98
- csdx cm:bulk-publish:add-fields --config [PATH TO CONFIG FILE]
99
- csdx cm:bulk-publish:add-fields -c [PATH TO CONFIG FILE]
98
+ Generate a config file at the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
99
+ csdx cm:assets:publish --config [PATH TO CONFIG FILE]
100
+ csdx cm:assets:publish -c [PATH TO CONFIG FILE]
101
+
102
+ Using --retry-failed flag
103
+ csdx cm:assets:publish --retry-failed [LOG FILE NAME]
100
104
 
101
- Using --retryFailed or -r flag
102
- csdx cm:bulk-publish:add-fields --retryFailed [LOG FILE NAME]
103
- csdx cm:bulk-publish:add-fields -r [LOG FILE NAME]
105
+ Using --branch flag
106
+ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN
107
+ ALIAS] --branch [BRANCH NAME]
104
108
 
105
- Using --branch or -B flag
106
- csdx cm:bulk-publish:add-fields -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1]
107
- [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]
109
+ Using --source-env
110
+ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN
111
+ ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
108
112
  ```
109
113
 
110
- _See code: [src/commands/cm/bulk-publish/add-fields.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/add-fields.js)_
114
+ _See code: [src/commands/cm/assets/publish.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/assets/publish.js)_
111
115
 
112
- ## `csdx cm:bulk-publish:assets`
116
+ ## `csdx cm:assets:unpublish`
113
117
 
114
- Publish assets to specified environments
118
+ Unpublish assets from given environment
115
119
 
116
120
  ```
117
121
  USAGE
118
- $ csdx cm:bulk-publish:assets
122
+ $ csdx cm:assets:unpublish
119
123
 
120
124
  OPTIONS
121
- -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
122
- -a, --alias=alias Alias for the management token to be used
123
-
124
- -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
125
- bulkpublish API will be used for publishing the entries
126
-
127
- -c, --config=config Path to config file to be used
125
+ -a, --alias=alias Alias(name) for the management token
126
+ -c, --config=config Path to the config file
127
+ -e, --environment=environment Source Environment
128
+ -y, --yes Agree to process the command with the current configuration
128
129
 
129
- -e, --environments=environments Environments to which assets need to be published
130
+ --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
131
+ is selected)
130
132
 
131
- -l, --locales=locales Locales to which assets need to be published
133
+ --bulk-unpublish=bulk-unpublish [default: true] By default this flag is set as true. It indicates that contentstack's
134
+ bulkpublish API will be used to unpublish the assets
132
135
 
133
- -r, --retryFailed=retryFailed Retry publishing failed assets from the logfile (optional, will override all other
134
- flags)
136
+ --delivery-token=delivery-token Delivery Token for source environment
135
137
 
136
- -u, --folderUid=folderUid [default: cs_root] Folder-uid from which the assets need to be published
138
+ --locale=locale Locale filter
137
139
 
138
- -y, --yes Agree to process the command with the current configuration
140
+ --retry-failed=retry-failed Retry unpublishing failed assets from the logfile
139
141
 
140
142
  DESCRIPTION
141
- The assets command is used for publishing assets from the specified stack, to the specified environments
143
+ The unpublish command is used for unpublishing assets from the given environment
142
144
 
143
- Environment(s) and Locale(s) are required for executing the command successfully
144
- But, if retryFailed flag is set, then only a logfile is required
145
+ Note: Environment (Source Environment) and Locale are required to execute the command successfully
146
+ But, if retry-failed flag is set, then only a logfile is required
145
147
 
146
148
  EXAMPLES
147
149
  General Usage
148
- csdx cm:bulk-publish:assets -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS]
150
+ csdx cm:assets:unpublish --bulk-unpublish --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN
151
+ ALIAS] --delivery-token [DELIVERY TOKEN]
149
152
 
150
153
  Using --config or -c flag
151
- Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
152
- csdx cm:bulk-publish:assets --config [PATH TO CONFIG FILE]
153
- csdx cm:bulk-publish:assets -c [PATH TO CONFIG FILE]
154
+ Generate a config file at the current working directory using `csdx cm:bulk-publish:configure --alias [ALIAS]`
155
+ csdx cm:assets:unpublish --config [PATH TO CONFIG FILE]
156
+ csdx cm:assets:unpublish -c [PATH TO CONFIG FILE]
154
157
 
155
- Using --retryFailed or -r flag
156
- csdx cm:bulk-publish:assets --retryFailed [LOG FILE NAME]
157
- csdx cm:bulk-publish:assets -r [LOG FILE NAME]
158
+ Using --retry-failed flag
159
+ csdx cm:assets:unpublish --retry-failed [LOG FILE NAME]
158
160
 
159
- Using --branch or -B flag
160
- csdx cm:bulk-publish:assets -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH
161
- NAME]
161
+ Using --branch flag
162
+ csdx cm:assets:unpublish --bulk-unpublish --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN
163
+ ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
162
164
  ```
163
165
 
164
- _See code: [src/commands/cm/bulk-publish/assets.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/assets.js)_
166
+ _See code: [src/commands/cm/assets/unpublish.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/assets/unpublish.js)_
165
167
 
166
- ## `csdx cm:bulk-publish:clear`
168
+ ## `csdx cm:bulk-publish`
167
169
 
168
- Clear the log folder
170
+ Bulk Publish script for managing entries and assets
169
171
 
170
172
  ```
171
173
  USAGE
172
- $ csdx cm:bulk-publish:clear
173
-
174
- OPTIONS
175
- -l, --list List number of log files
176
- -y, --yes Delete all files without asking for confirmation
174
+ $ csdx cm:bulk-publish
177
175
  ```
178
176
 
179
- _See code: [src/commands/cm/bulk-publish/clear.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/clear.js)_
177
+ _See code: [src/commands/cm/bulk-publish/index.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/index.js)_
180
178
 
181
- ## `csdx cm:bulk-publish:configure`
179
+ ## `csdx cm:bulk-publish:cross-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-type <value>] [--locales <value>] [--source-env <value>] [--environments <value>] [--delivery-token <value>] [-c <value>] [-y] [--branch <value>] [--onlyAssets] [--onlyEntries]`
182
180
 
183
- Generate configuration template
181
+ Publish entries and assets from one environment to other environments
184
182
 
185
183
  ```
186
184
  USAGE
187
- $ csdx cm:bulk-publish:configure
185
+ $ csdx cm:bulk-publish:cross-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-type
186
+ <value>] [--locales <value>] [--source-env <value>] [--environments <value>] [--delivery-token <value>] [-c <value>]
187
+ [-y] [--branch <value>] [--onlyAssets] [--onlyEntries]
188
188
 
189
189
  OPTIONS
190
- -a, --alias=alias Management token alias for the stack
190
+ -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
191
+ is selected)
192
+
193
+ -a, --alias=alias Alias(name) for the management token
194
+
195
+ -c, --config=config Path to the config file
196
+
197
+ -y, --yes Agree to process the command with the current configuration
198
+
199
+ --bulk-publish=bulk-publish [default: true] This flag is set to true by default. It indicates that contentstack's
200
+ bulkpublish API will be used to publish the entries
201
+
202
+ --content-type=content-type The Contenttypes from which entries will be published
203
+
204
+ --delivery-token=delivery-token Delivery token for source environment
205
+
206
+ --environments=environments Destination Environments
207
+
208
+ --locales=locales Source locale
209
+
210
+ --onlyAssets Unpublish only assets
211
+
212
+ --onlyEntries Unpublish only entries
213
+
214
+ --retry-failed=retry-failed (optional) Retry publishing failed entries from the logfile (this flag overrides all
215
+ other flags)
216
+
217
+ --source-env=source-env Source Env
191
218
 
192
219
  DESCRIPTION
193
- The configure command is used for generating a configuration file for bulk-publish script.
220
+ The cross-publish command is used to publish entries and assets from one environment to other environments
194
221
 
195
- Here is a detailed description for all the available flags
222
+ Note: Content Type, Environment, Destination Environment(s) and Locale are required to execute the command
223
+ successfully
224
+ But, if retryFailed flag is set, then only a logfile is required
196
225
 
197
- -----------------------------------------------------------------------------------------------------------
198
- --alias or -a : Management token Alias for the stack in use.
226
+ EXAMPLES
227
+ General Usage
228
+ csdx cm:bulk-publish:cross-publish --content-type [CONTENT TYPE] --source-env [SOURCE ENV] --environments [DESTINATION
229
+ ENVIRONMENT] --locales [LOCALE] -a [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN]
230
+
231
+ Using --config or -c flag
232
+ Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
233
+ csdx cm:bulk-publish:cross-publish --config [PATH TO CONFIG FILE]
234
+ csdx cm:bulk-publish:cross-publish -c [PATH TO CONFIG FILE]
199
235
 
200
- EXAMPLE : cm:bulk-publish:configure --alias [MANAGEMENT TOKEN Alias]
201
- EXAMPLE : cm:bulk-publish:configure -a [MANAGEMENT TOKEN Alias]
236
+ Using --retry-failed flag
237
+ csdx cm:bulk-publish:cross-publish --retry-failed [LOG FILE NAME]
238
+ csdx cm:bulk-publish:cross-publish -r [LOG FILE NAME]
239
+
240
+ Using --branch flag
241
+ csdx cm:bulk-publish:cross-publish --content-type [CONTENT TYPE] --source-env [SOURCE ENV] --environments [DESTINATION
242
+ ENVIRONMENT] --locales [LOCALE] -a [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
202
243
  ```
203
244
 
204
- _See code: [src/commands/cm/bulk-publish/configure.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/configure.js)_
245
+ _See code: [src/commands/cm/bulk-publish/cross-publish.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/cross-publish.js)_
205
246
 
206
- ## `csdx cm:bulk-publish:cross-publish`
247
+ ## `csdx cm:entries:publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--publish-all-content-types] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`
207
248
 
208
- Publish entries and assets from one environment to other environments
249
+ Publish entries from multiple contenttypes to multiple environments and locales
209
250
 
210
251
  ```
211
252
  USAGE
212
- $ csdx cm:bulk-publish:cross-publish
253
+ $ csdx cm:entries:publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--publish-all-content-types]
254
+ [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>] [--delivery-token
255
+ <value>] [--source-env <value>]
213
256
 
214
257
  OPTIONS
215
- -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main
216
- branch)
258
+ -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
259
+ is selected)
217
260
 
218
- -a, --alias=alias Alias for the management token to be used
261
+ -a, --alias=alias Alias(name) for the management token
219
262
 
220
- -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that
221
- contentstack's bulkpublish API will be used for publishing the entries
263
+ -c, --config=config Path for the external config file (A new config file can be generated at the current
264
+ working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`)
222
265
 
223
- -c, --config=config Path to config file to be used
266
+ -e, --environments=environments Environments where entries will be published
224
267
 
225
- -d, --destEnv=destEnv Destination Environments
268
+ -l, --locales=locales Locales where entries will be published
226
269
 
227
- -e, --environment=environment Source Environment
228
-
229
- -l, --locale=locale Locale filter
270
+ -y, --yes Agree to process the command with the current configuration
230
271
 
231
- -r, --retryFailed=retryFailed Retry publishing failed entries from the logfile (optional, overrides all other
232
- flags)
272
+ --bulk-publish=bulk-publish [default: true] This flag is set to true by default. It indicates that contentstack's
273
+ bulkpublish API will be used to publish the entries
233
274
 
234
- -t, --contentType=contentType Content-Type filter
275
+ --content-types=content-types The Contenttypes from which entries need to be published
235
276
 
236
- -x, --deliveryToken=deliveryToken Delivery Token for source environment
277
+ --delivery-token=delivery-token Delivery token for source environment
237
278
 
238
- -y, --yes Agree to process the command with the current configuration
279
+ --publish-all-content-types (optional) Publish all contenttypes (cannot be set when contentTypes flag is set)
239
280
 
240
- --onlyAssets Unpublish only assets
281
+ --retry-failed=retry-failed (optional) Retry failed entries from the logfile (overrides all other flags) This
282
+ flag is used to retry publishing entries that failed to publish in a previous
283
+ attempt. A log file for the previous session will be required for processing the
284
+ failed entries
241
285
 
242
- --onlyEntries Unpublish only entries
286
+ --source-env=source-env Source environment
243
287
 
244
288
  DESCRIPTION
245
- The cross-publish command is used for publishing entries and assets from one evironment to other environments
289
+ The publish command is used to publish entries from the specified content types, to the
290
+ specified environments and locales
246
291
 
247
- Content Type, Environment, Destination Environment(s) and Locale are required for executing the command successfully
248
- But, if retryFailed flag is set, then only a logfile is required
292
+ Note: Content Types, Environments and Locales are required to execute the command successfully
293
+ But, if retry-failed flag is set, then only a logfile is required
294
+
295
+ ALIASES
296
+ $ csdx cm:bulk-publish:entries
249
297
 
250
298
  EXAMPLES
251
299
  General Usage
252
- csdx cm:bulk-publish:cross-publish -t [CONTENT TYPE] -e [SOURCE ENV] -d [DESTINATION ENVIRONMENT] -l [LOCALE] -a
253
- [MANAGEMENT TOKEN ALIAS] -x [DELIVERY TOKEN]
300
+ csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales
301
+ [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
254
302
 
255
303
  Using --config or -c flag
256
- Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
257
- csdx cm:bulk-publish:cross-publish --config [PATH TO CONFIG FILE]
258
- csdx cm:bulk-publish:cross-publish -c [PATH TO CONFIG FILE]
304
+ Generate a config file at the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
305
+ csdx cm:entries:publish --config [PATH TO CONFIG FILE]
306
+ csdx cm:entries:publish -c [PATH TO CONFIG FILE]
259
307
 
260
- Using --retryFailed or -r flag
261
- csdx cm:bulk-publish:cross-publish --retryFailed [LOG FILE NAME]
262
- csdx cm:bulk-publish:cross-publish -r [LOG FILE NAME]
308
+ Using --retry-failed
309
+ csdx cm:entries:publish --retry-failed [LOG FILE NAME]
310
+ csdx cm:entries:publish -r [LOG FILE NAME]
263
311
 
264
- Using --branch or -B flag
265
- csdx cm:bulk-publish:cross-publish -t [CONTENT TYPE] -e [SOURCE ENV] -d [DESTINATION ENVIRONMENT] -l [LOCALE] -a
266
- [MANAGEMENT TOKEN ALIAS] -x [DELIVERY TOKEN] -B [BRANCH NAME]
312
+ Using --branch
313
+ csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales
314
+ [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
315
+
316
+ Using --source-env
317
+ csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales
318
+ [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
267
319
  ```
268
320
 
269
- _See code: [src/commands/cm/bulk-publish/cross-publish.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/cross-publish.js)_
321
+ _See code: [src/commands/cm/entries/publish.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/entries/publish.js)_
270
322
 
271
- ## `csdx cm:bulk-publish:entries`
323
+ ## `csdx cm:entries:publish-modified [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
272
324
 
273
- Publish entries from multiple content-types to multiple environments and locales
325
+ Publish edited entries from a specified content type to the given locales and environments
274
326
 
275
327
  ```
276
328
  USAGE
277
- $ csdx cm:bulk-publish:entries
329
+ $ csdx cm:entries:publish-modified [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env
330
+ <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]
278
331
 
279
332
  OPTIONS
280
- -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
281
- -a, --alias=alias Alias for the management token to be used
333
+ -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
334
+ is selected)
282
335
 
283
- -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
284
- bulkpublish API will be used for publishing the entries
336
+ -a, --alias=alias Alias(name) for the management token
285
337
 
286
- -c, --config=config Path for the external config file to be used (A new config file can be generated at
287
- the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`)
338
+ -c, --config=config Path to the config file
288
339
 
289
- -e, --environments=environments Environments to which entries need to be published
340
+ -e, --environments=environments Destination environments
290
341
 
291
- -l, --locales=locales Locales to which entries need to be published
342
+ -l, --locales=locales Locales where edited entries will be published
292
343
 
293
- -o, --publishAllContentTypes Publish all content-types (optional, cannot be set when contentTypes flag is set)
344
+ -y, --yes Agree to process the command with the current configuration
294
345
 
295
- -r, --retryFailed=retryFailed Retry failed entries from the logfile (optional, overrides all other flags) This flag
296
- is used to retry publishing entries that failed to publish in a previous attempt. A
297
- log file for the previous session will be required for processing the failed entries
346
+ --bulk-publish=bulk-publish [default: true] This flag is set to true by default. It indicates that contentstack's
347
+ bulkpublish API will be used to publish the entries
298
348
 
299
- -t, --contentTypes=contentTypes The Content-types from which entries need to be published
349
+ --content-types=content-types The Contenttypes which will be checked for edited entries
300
350
 
301
- -y, --yes Agree to process the command with the current configuration
351
+ --retry-failed=retry-failed Retry publishing failed entries from the logfile (optional, overrides all other
352
+ flags)
353
+
354
+ --source-env=source-env Environment from which edited entries will be published
302
355
 
303
356
  DESCRIPTION
304
- The entries command is used for publishing entries from the specified content types, to the
305
- specified environments and locales
357
+ The publish-modified command is used to publish entries from the specified content types, to the
358
+ specified environments and locales
306
359
 
307
- Content Types, Environments and Locales are required for executing the command successfully
308
- But, if retryFailed flag is set, then only a logfile is required
360
+ Note: Content type(s), Source Environment, Destination Environment(s) and Locale(s) are required to execute the
361
+ command successfully
362
+ But, if retry-failed flag is set, then only a logfile is required
363
+
364
+ ALIASES
365
+ $ csdx cm:bulk-publish:entry-edits
309
366
 
310
367
  EXAMPLES
311
368
  General Usage
312
- csdx cm:bulk-publish:entries -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1]
313
- [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
369
+ csdx cm:entries:publish-modified --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --source-env [SOURCE_ENV] -e
370
+ [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
314
371
 
315
372
  Using --config or -c flag
316
- Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
317
- csdx cm:bulk-publish:entries --config [PATH TO CONFIG FILE]
318
- csdx cm:bulk-publish:entries -c [PATH TO CONFIG FILE]
373
+ Generate a config file at the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
374
+ csdx cm:entries:publish-modified --config [PATH TO CONFIG FILE]
375
+ csdx cm:entries:publish-modified -c [PATH TO CONFIG FILE]
319
376
 
320
- Using --retryFailed or -r flag
321
- csdx cm:bulk-publish:entries --retryFailed [LOG FILE NAME]
322
- csdx cm:bulk-publish:entries -r [LOG FILE NAME]
377
+ Using --retry-failed
378
+ csdx cm:entries:publish-modified --retry-failed [LOG FILE NAME]
379
+ csdx cm:entries:publish-modified -r [LOG FILE NAME]
323
380
 
324
- Using --branch or -B flag
325
- csdx cm:bulk-publish:entries -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1]
326
- [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]
381
+ Using --branch
382
+ csdx cm:entries:publish-modified --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --source-env [SOURCE_ENV] -e
383
+ [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
327
384
  ```
328
385
 
329
- _See code: [src/commands/cm/bulk-publish/entries.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/entries.js)_
386
+ _See code: [src/commands/cm/entries/publish-modified.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-modified.js)_
330
387
 
331
- ## `csdx cm:bulk-publish:entry-edits`
388
+ ## `csdx cm:entries:publish-non-localized-fields [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
332
389
 
333
- Publish edited entries from a specified Content Type to given locales and environments
390
+ Publish non-localized fields for the given content types, from a particular source environment to the specified environments
334
391
 
335
392
  ```
336
393
  USAGE
337
- $ csdx cm:bulk-publish:entry-edits
394
+ $ csdx cm:entries:publish-non-localized-fields [-a <value>] [--retry-failed <value>] [--bulk-publish <value>]
395
+ [--source-env <value>] [--content-types <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]
338
396
 
339
397
  OPTIONS
340
- -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
341
- -a, --alias=alias Alias for the management token to be used
398
+ -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
399
+ is selected)
342
400
 
343
- -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
344
- bulkpublish API will be used for publishing the entries
401
+ -a, --alias=alias Alias(name) for the management token
345
402
 
346
- -c, --config=config Path to config file to be used
403
+ -c, --config=config Path to the config file
347
404
 
348
405
  -e, --environments=environments Destination environments
349
406
 
350
- -l, --locales=locales Locales to which edited entries need to be published
407
+ -y, --yes Agree to process the command with the current configuration
351
408
 
352
- -r, --retryFailed=retryFailed Retry publishing failed entries from the logfile (optional, overrides all other
353
- flags)
409
+ --bulk-publish=bulk-publish [default: true] This flag is set to true by default. It indicates that contentstack's
410
+ bulkpublish API will be used to publish the entries
354
411
 
355
- -s, --sourceEnv=sourceEnv Environment from which edited entries will be published
412
+ --content-types=content-types The Contenttypes from which entries will be published
356
413
 
357
- -t, --contentTypes=contentTypes The Content-Types which will be checked for edited entries
414
+ --retry-failed=retry-failed Retry publishing failed entries from the logfile
358
415
 
359
- -y, --yes Agree to process the command with the current configuration
416
+ --source-env=source-env Source Environment
360
417
 
361
418
  DESCRIPTION
362
- The entry-edits command is used for publishing entries from the specified content types, to the
363
- specified environments and locales
419
+ The non-localized field changes command is used to publish non-localized field changes from the given content types to
420
+ the specified environments
364
421
 
365
- Content Type(s), Source Environment, Destination Environment(s) and Locale(s) are required for executing the command
366
- successfully
422
+ Note: Content types, Environments and Source Environment are required to execute this command successfully.
367
423
  But, if retryFailed flag is set, then only a logfile is required
368
424
 
425
+ ALIASES
426
+ $ csdx cm:bulk-publish:nonlocalized-field-changes
427
+
369
428
  EXAMPLES
370
429
  General Usage
371
- csdx cm:bulk-publish:entry-edits -t [CONTENT TYPE 1] [CONTENT TYPE 2] -s [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT
372
- 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
430
+ csdx cm:entries:publish-non-localized-fields --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --environments
431
+ [ENVIRONMENT 1] [ENVIRONMENT 2] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENV]
373
432
 
374
433
  Using --config or -c flag
375
434
  Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
376
- csdx cm:bulk-publish:entry-edits --config [PATH TO CONFIG FILE]
377
- csdx cm:bulk-publish:entry-edits -c [PATH TO CONFIG FILE]
435
+ csdx cm:entries:publish-non-localized-fields --config [PATH TO CONFIG FILE]
436
+ csdx cm:entries:publish-non-localized-fields -c [PATH TO CONFIG FILE]
378
437
 
379
- Using --retryFailed or -r flag
380
- csdx cm:bulk-publish:entry-edits --retryFailed [LOG FILE NAME]
381
- csdx cm:bulk-publish:entry-edits -r [LOG FILE NAME]
438
+ Using --retry-failed flag
439
+ csdx cm:entries:publish-non-localized-fields --retry-failed [LOG FILE NAME]
382
440
 
383
- Using --branch or -B flag
384
- csdx cm:bulk-publish:entry-edits -t [CONTENT TYPE 1] [CONTENT TYPE 2] -s [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT
385
- 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]
441
+ Using --branch flag
442
+ csdx cm:entries:publish-non-localized-fields --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --environments
443
+ [ENVIRONMENT 1] [ENVIRONMENT 2] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENV] --branch [BRANCH NAME]
386
444
  ```
387
445
 
388
- _See code: [src/commands/cm/bulk-publish/entry-edits.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/entry-edits.js)_
446
+ _See code: [src/commands/cm/entries/publish-non-localized-fields.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-non-localized-fields.js)_
389
447
 
390
- ## `csdx cm:bulk-publish:nonlocalized-field-changes`
448
+ ## `csdx cm:entries:publish-only-unpublished [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
391
449
 
392
- Publish non-localized-fields for given Content Types, from a particular source environment to specified environments
450
+ Publish unpublished entries from the source environment, to other environments and locales
393
451
 
394
452
  ```
395
453
  USAGE
396
- $ csdx cm:bulk-publish:nonlocalized-field-changes
454
+ $ csdx cm:entries:publish-only-unpublished [-a <value>] [--retry-failed <value>] [--bulk-publish <value>]
455
+ [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]
397
456
 
398
457
  OPTIONS
399
- -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
400
- -a, --alias=alias Alias for the management token to be used
458
+ -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
459
+ is selected)
460
+
461
+ -a, --alias=alias Alias(name) for the management token
401
462
 
402
- -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
403
- bulkpublish API will be used for publishing the entries
463
+ -b, --bulk-publish=bulk-publish [default: true] This flag is set to true by default. It indicates that contentstack's
464
+ bulkpublish API will be used to publish the entries
404
465
 
405
- -c, --config=config Path to config file to be used
466
+ -c, --config=config Path to the config file
406
467
 
407
468
  -e, --environments=environments Destination environments
408
469
 
409
- -r, --retryFailed=retryFailed Retry publishing failed entries from the logfile
470
+ -y, --yes Agree to process the command with the current configuration
471
+
472
+ --content-types=content-types The Contenttypes from which entries will be published
410
473
 
411
- -s, --sourceEnv=sourceEnv Source Environment
474
+ --locales=locales Source locale
412
475
 
413
- -t, --contentTypes=contentTypes The Content-Types from which entries need to be published
476
+ --retry-failed=retry-failed Retry publishing failed entries from the logfile
414
477
 
415
- -y, --yes Agree to process the command with the current configuration
478
+ --source-env=source-env Source Env
416
479
 
417
480
  DESCRIPTION
418
- The nonlocalized-field-changes command is used for publishing nonlocalized field changes from the given Content Types
419
- to
420
- the specified Environments
481
+ The publish-only-unpublished command is used to publish unpublished entries from the source environment, to other
482
+ environments and locales
421
483
 
422
- Content Types, Environments and Source Environment are required for executing this command successfully.
423
- But, if retryFailed flag is set, then only a logfile is required
484
+ Note: Content type(s), Source Environment, Destination Environment(s) and Source Locale are required to execute the
485
+ command successfully
486
+ But, if retry-failed flag is set, then only a logfile is required
487
+
488
+ ALIASES
489
+ $ csdx cm:bulk-publish:unpublished-entries
424
490
 
425
491
  EXAMPLES
426
492
  General Usage
427
- csdx cm:bulk-publish:nonlocalized-field-changes -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT
428
- 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -s [SOURCE ENV]
493
+ csdx cm:entries:publish-only-unpublished -b --content-types [CONTENT TYPES] -e [ENVIRONMENTS] --locales LOCALE -a
494
+ [MANAGEMENT TOKEN ALIAS] -source-env [SOURCE ENV]
429
495
 
430
496
  Using --config or -c flag
431
497
  Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
432
- csdx cm:bulk-publish:nonlocalized-field-changes --config [PATH TO CONFIG FILE]
433
- csdx cm:bulk-publish:nonlocalized-field-changes -c [PATH TO CONFIG FILE]
498
+ csdx cm:entries:publish-only-unpublished --config [PATH TO CONFIG FILE]
499
+ csdx cm:entries:publish-only-unpublished -c [PATH TO CONFIG FILE]
434
500
 
435
- Using --retryFailed or -r flag
436
- csdx cm:bulk-publish:nonlocalized-field-changes --retryFailed [LOG FILE NAME]
437
- csdx cm:bulk-publish:nonlocalized-field-changes -r [LOG FILE NAME]
501
+ Using --retry-failed
502
+ csdx cm:entries:publish-only-unpublished --retry-failed [LOG FILE NAME]
438
503
 
439
- Using --branch or -B flag
440
- csdx cm:bulk-publish:nonlocalized-field-changes -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT
441
- 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME] -s [SOURCE ENV]
504
+ Using --branch
505
+ csdx cm:entries:publish-only-unpublished -b --content-types [CONTENT TYPES] -e [ENVIRONMENTS] --locales LOCALE -a
506
+ [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME] -source-env [SOURCE ENV]
442
507
  ```
443
508
 
444
- _See code: [src/commands/cm/bulk-publish/nonlocalized-field-changes.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/nonlocalized-field-changes.js)_
509
+ _See code: [src/commands/cm/entries/publish-only-unpublished.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-only-unpublished.js)_
445
510
 
446
- ## `csdx cm:bulk-publish:revert`
511
+ ## `csdx cm:entries:unpublish`
447
512
 
448
- Revert publish operations by using a log file
513
+ Unpublish entries from the given environment
449
514
 
450
515
  ```
451
516
  USAGE
452
- $ csdx cm:bulk-publish:revert
517
+ $ csdx cm:entries:unpublish
453
518
 
454
519
  OPTIONS
455
- -l, --logFile=logFile logfile to be used to revert
456
- -r, --retryFailed=retryFailed retry publishing failed entries from the logfile
520
+ -a, --alias=alias Alias(name) for the management token
521
+ -c, --config=config Path to the config file
522
+ -e, --environment=environment Source Environment
523
+ -y, --yes Agree to process the command with the current configuration
524
+
525
+ --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
526
+ is selected)
527
+
528
+ --bulk-unpublish=bulk-unpublish [default: true] This flag is set to true by default. It indicates that contentstack's
529
+ bulkpublish API will be used to unpublish the entries
530
+
531
+ --content-type=content-type Content type filter
532
+
533
+ --delivery-token=delivery-token Delivery token for source environment
534
+
535
+ --locale=locale Locale filter
536
+
537
+ --retry-failed=retry-failed Retry publishing failed entries from the logfile
457
538
 
458
539
  DESCRIPTION
459
- The revert command is used for reverting all publish operations performed using bulk-publish script.
460
- A log file name is required to execute revert command
540
+ The unpublish command is used to unpublish entries from the given environment
541
+
542
+ Note: Environment (Source Environment) and Locale are required to execute the command successfully
543
+ But, if retry-failed flag is set, then only a logfile is required
461
544
 
462
545
  EXAMPLES
463
- Using --logFile
464
- cm:bulk-publish:revert --logFile [LOG FILE NAME]
465
- cm:bulk-publish:revert -l [LOG FILE NAME]
546
+ General Usage
547
+ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE]
548
+ --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN]
549
+
550
+ Using --config or -c flag
551
+ Generate a config file at the current working directory using `csdx cm:bulk-publish:configure --alias [ALIAS]`
552
+ csdx cm:stacks:unpublish --config [PATH TO CONFIG FILE]
553
+ csdx cm:stacks:unpublish -c [PATH TO CONFIG FILE]
466
554
 
467
- Using --retryFailed
468
- cm:bulk-publish:revert --retryFailed [LOG FILE NAME]
469
- cm:bulk-publish:revert -r [LOG FILE NAME]
555
+ Using --retry-failed flag
556
+ csdx cm:stacks:unpublish --retry-failed [LOG FILE NAME]
557
+
558
+
559
+ Using --branch flag
560
+ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE]
561
+ --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
470
562
  ```
471
563
 
472
- _See code: [src/commands/cm/bulk-publish/revert.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/revert.js)_
564
+ _See code: [src/commands/cm/entries/unpublish.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/entries/unpublish.js)_
473
565
 
474
- ## `csdx cm:bulk-publish:unpublish`
566
+ ## `csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]`
475
567
 
476
- Unpublish entries of given Content Types from given environment
568
+ Add fields from updated content types to their respective entries
477
569
 
478
570
  ```
479
571
  USAGE
480
- $ csdx cm:bulk-publish:unpublish
572
+ $ csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types
573
+ <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]
481
574
 
482
575
  OPTIONS
483
- -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main
484
- branch)
485
-
486
- -a, --alias=alias Alias for the management token to be used
576
+ -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
577
+ is selected)
487
578
 
488
- -b, --bulkUnpublish=bulkUnpublish [default: true] This flag is set to true by default. It indicates that
489
- contentstack's bulkpublish API will be used for publishing the entries
579
+ -a, --alias=alias Alias(name) for the management token
490
580
 
491
- -c, --config=config Path to config file to be used
581
+ -c, --config=config Path to the config file
492
582
 
493
- -e, --environment=environment Source Environment
583
+ -e, --environments=environments Environments where entries will be published
494
584
 
495
- -l, --locale=locale Locale filter
585
+ -l, --locales=locales Locales where entries will be published
496
586
 
497
- -r, --retryFailed=retryFailed Retry publishing failed entries from the logfile
587
+ -t, --contentTypes=contentTypes The Contenttypes from which entries will be published
498
588
 
499
- -t, --contentType=contentType Content Type filter
589
+ -y, --yes Agree to process the command with the current configuration
500
590
 
501
- -x, --deliveryToken=deliveryToken Delivery Token for source environment
591
+ --bulk-publish=bulk-publish [default: true] This flag is set to true by default. It indicates that contentstack's
592
+ bulkpublish API will be used to publish the entries
502
593
 
503
- -y, --yes Agree to process the command with the current configuration
594
+ --content-types=content-types The Contenttypes from which entries will be published
504
595
 
505
- --onlyAssets Unpublish only assets
596
+ --force Update and publish all entries even if no fields have been added
506
597
 
507
- --onlyEntries Unpublish only entries
598
+ --retry-failed=retry-failed Retry publishing failed entries from the logfile (optional, overrides all other
599
+ flags)
508
600
 
509
601
  DESCRIPTION
510
- The unpublish command is used for unpublishing entries from given environment
602
+ The update-and-publish command is used to update existing entries with the updated schema of the respective content
603
+ type
511
604
 
512
- Environment (Source Environment) and Locale are required for executing the command successfully
513
- But, if retryFailed flag is set, then only a logfile is required
605
+ Note: Content types, Environments and Locales are required to execute the command successfully
606
+ But, if retry-failed flag is set, then only a logfile is required
514
607
 
515
- A Content Type can be specified for publishing entries, but if no content-type(s) is/are specified and --onlyAssets is
516
- not used,
517
- then all entries from all content types will be unpublished from the source environment
608
+ ALIASES
609
+ $ csdx cm:bulk-publish:add-fields
610
+
611
+ EXAMPLES
612
+ General Usage
613
+ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT
614
+ 2] --locale [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
615
+
616
+ Using --config or -c flag
617
+ Generate a config file at the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
618
+ csdx cm:entries:update-and-publish --config [PATH TO CONFIG FILE]
619
+ csdx cm:entries:update-and-publish -c [PATH TO CONFIG FILE]
620
+
621
+ Using --retry-failed
622
+ csdx cm:entries:update-and-publish --retry-failed [LOG FILE NAME]
623
+
624
+ Using --branch
625
+ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT
626
+ 2] --locale [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
627
+ ```
628
+
629
+ _See code: [src/commands/cm/entries/update-and-publish.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/entries/update-and-publish.js)_
630
+
631
+ ## `csdx cm:stacks:publish`
632
+
633
+ Publish entries and assets to multiple environments and locales
634
+
635
+ ```
636
+ USAGE
637
+ $ csdx cm:stacks:publish
638
+
639
+ DESCRIPTION
640
+ The publish command is used to publish entries and assets, to the specified environments and locales.
518
641
 
519
- --onlyAssets can be used to unpublish only assets and --onlyEntries can be used to unpublish only entries.
520
- (--onlyAssets and --onlyEntries cannot be used together at the same time)
642
+ Note: Content types, Environments and Locales are required to execute the publish entries command successfully.
643
+ Note: Environments and Locales are required to execute the publish assets command successfully.
644
+ But, if retry-failed flag is set, then only a logfile is required
521
645
 
522
646
  EXAMPLES
523
647
  General Usage
524
- csdx cm:bulk-publish:unpublish -b -t [CONTENT TYPE] -e [SOURCE ENV] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -x
525
- [DELIVERY TOKEN]
648
+ csdx cm:stacks:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN
649
+ ALIAS]
526
650
 
527
651
  Using --config or -c flag
528
- Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
529
- csdx cm:bulk-publish:unpublish --config [PATH TO CONFIG FILE]
530
- csdx cm:bulk-publish:unpublish -c [PATH TO CONFIG FILE]
652
+ Generate a config file in the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
653
+ csdx cm:stacks:publish --config [PATH TO CONFIG FILE]
654
+ csdx cm:stacks:publish -c [PATH TO CONFIG FILE]
531
655
 
532
- Using --retryFailed or -r flag
533
- csdx cm:bulk-publish:unpublish --retryFailed [LOG FILE NAME]
534
- csdx cm:bulk-publish:unpublish -r [LOG FILE NAME]
656
+ Using --retry-failed flag
657
+ csdx cm:stacks:publish --retry-failed [LOG FILE NAME]
535
658
 
536
- No content type
537
- csdx cm:bulk-publish:unpublish --environment [SOURCE ENV] --locale [LOCALE] (Will unpublish all entries from all
538
- content types and assets from the source environment)
659
+ Using --branch flag
660
+ csdx cm:stacks:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN
661
+ ALIAS] --branch [BRANCH NAME]
662
+ ```
539
663
 
540
- Using --onlyAssets
541
- csdx cm:bulk-publish:unpublish --environment [SOURCE ENV] --locale [LOCALE] --onlyAssets (Will unpublish only assets
542
- from the source environment)
664
+ _See code: [src/commands/cm/stacks/publish.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish.js)_
543
665
 
544
- Using --onlyEntries
545
- csdx cm:bulk-publish:unpublish --environment [SOURCE ENV] --locale [LOCALE] --onlyEntries (Will unpublish only
546
- entries, all entries, from the source environment)
547
- csdx cm:bulk-publish:unpublish --contentType [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --onlyEntries
548
- (Will unpublish only entries, (from CONTENT TYPE) from the source environment)
666
+ ## `csdx cm:stacks:publish-clear-logs`
667
+
668
+ Clear the log folder
549
669
 
550
- Using --branch or -B flag
551
- csdx cm:bulk-publish:unpublish -b -t [CONTENT TYPE] -e [SOURCE ENV] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -x
552
- [DELIVERY TOKEN] -B [BRANCH NAME]
553
670
  ```
671
+ USAGE
672
+ $ csdx cm:stacks:publish-clear-logs
554
673
 
555
- _See code: [src/commands/cm/bulk-publish/unpublish.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/unpublish.js)_
674
+ OPTIONS
675
+ -y, --yes Delete all files without asking for confirmation
676
+ --log-files-count List number of log files
556
677
 
557
- ## `csdx cm:bulk-publish:unpublished-entries`
678
+ ALIASES
679
+ $ csdx cm:bulk-publish:clear
558
680
 
559
- Publish unpublished entries from the source environment, to other environments and locales
681
+ EXAMPLES
682
+ csdx cm:stacks:publish-clear-logs
683
+ csdx cm:stacks:publish-clear-logs --log-files-count
684
+ csdx cm:stacks:publish-clear-logs --yes
685
+ csdx cm:stacks:publish-clear-logs -y
686
+ ```
687
+
688
+ _See code: [src/commands/cm/stacks/publish-clear-logs.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-clear-logs.js)_
689
+
690
+ ## `csdx cm:stacks:publish-configure`
691
+
692
+ The configure command is used to generate a configuration file for publish scripts.
560
693
 
561
694
  ```
562
695
  USAGE
563
- $ csdx cm:bulk-publish:unpublished-entries
696
+ $ csdx cm:stacks:publish-configure
564
697
 
565
698
  OPTIONS
566
- -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
567
- -a, --alias=alias Alias for the management token to be used
699
+ -a, --alias=alias Alias(name) for the management token
700
+
701
+ ALIASES
702
+ $ csdx cm:bulk-publish:configure
568
703
 
569
- -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
570
- bulkpublish API will be used for publishing the entries
704
+ EXAMPLES
705
+ csdx cm:stacks:publish-configure
706
+ csdx cm:stacks:publish-configure -a <management_token_alias>
707
+ csdx cm:stacks:publish-configure --alias <management_token_alias>
708
+ ```
571
709
 
572
- -c, --config=config Path to config file to be used
710
+ _See code: [src/commands/cm/stacks/publish-configure.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-configure.js)_
573
711
 
574
- -e, --environments=environments Destination environments
712
+ ## `csdx cm:stacks:publish-revert`
713
+
714
+ Revert publish operations by using a log file
715
+
716
+ ```
717
+ USAGE
718
+ $ csdx cm:stacks:publish-revert
719
+
720
+ OPTIONS
721
+ --log-file=log-file logfile to be used to revert
722
+ --retry-failed=retry-failed retry publishing failed entries from the logfile
723
+
724
+ DESCRIPTION
725
+ The revert command is used to revert all publish operations performed using bulk-publish script.
726
+ A log file name is required to execute revert command
727
+
728
+ ALIASES
729
+ $ csdx cm:bulk-publish:revert
730
+
731
+ EXAMPLES
732
+ Using --log-file
733
+ cm:bulk-publish:revert --log-file [LOG FILE NAME]
575
734
 
576
- -l, --locale=locale Source locale
735
+ Using --retry-failed
736
+ cm:bulk-publish:revert --retry-failed [LOG FILE NAME]
737
+ ```
577
738
 
578
- -r, --retryFailed=retryFailed Retry publishing failed entries from the logfile
739
+ _See code: [src/commands/cm/stacks/publish-revert.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-revert.js)_
579
740
 
580
- -s, --sourceEnv=sourceEnv Source Env
741
+ ## `csdx csdx cm:stacks:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>] [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>] [--only-assets] [--only-entries]`
581
742
 
582
- -t, --contentTypes=contentTypes The Content-Types from which entries need to be published
743
+ Unpublish entries or assets of given content types from the specified environment
583
744
 
745
+ ```
746
+ USAGE
747
+ $ csdx csdx cm:stacks:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>]
748
+ [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>]
749
+ [--only-assets] [--only-entries]
750
+
751
+ OPTIONS
752
+ -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
753
+ -a, --alias=alias Alias(name) for the management token
754
+ -c, --config=config Path to the config file
755
+ -e, --environment=environment Source Environment
756
+ -l, --locale=locale Locale filter
584
757
  -y, --yes Agree to process the command with the current configuration
585
758
 
759
+ --bulk-unpublish=bulk-unpublish [default: true] This flag is set to true by default. It indicates that contentstack's
760
+ bulkpublish API will be used to unpublish the entries and assets
761
+
762
+ --content-type=content-type Content type filter
763
+
764
+ --delivery-token=delivery-token Delivery token for source environment
765
+
766
+ --retry-failed=retry-failed Retry publishing failed entries from the logfile (optional, overrides all other
767
+ flags)
768
+
586
769
  DESCRIPTION
587
- The unpublished-entries command is used for publishing unpublished entries from the source environment, to other
588
- environments and locales
770
+ The unpublish command is used to unpublish entries or assets from given environment
589
771
 
590
- Content Type(s), Source Environment, Destination Environment(s) and Source Locale are required for executing the
591
- command successfully
592
- But, if retryFailed flag is set, then only a logfile is required
772
+ Environment (Source Environment) and Locale are required to execute the command successfully
773
+ But, if retry-failed flag is set, then only a logfile is required
774
+
775
+ A content type can be specified for unpublishing entries, but if no content-type(s) is/are specified and --only-assets
776
+ is not used,
777
+ then all entries from all content types will be unpublished from the source environment
778
+
779
+ Note: --only-assets can be used to unpublish only assets and --only-entries can be used to unpublish only entries.
780
+ (--only-assets and --only-entries cannot be used together at the same time)
781
+
782
+ ALIASES
783
+ $ csdx cm:bulk-publish:unpublish
593
784
 
594
785
  EXAMPLES
595
786
  General Usage
596
- csdx cm:bulk-publish:unpublished-entries -b -t [CONTENT TYPES] -e [ENVIRONMENTS] -l LOCALE -a [MANAGEMENT TOKEN ALIAS]
597
- -s [SOURCE ENV]
787
+ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE]
788
+ --alias [MANAGEMENT TOKEN ALIAS] ----delivery-token [DELIVERY TOKEN]
598
789
 
599
790
  Using --config or -c flag
600
- Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
601
- csdx cm:bulk-publish:unpublished-entries --config [PATH TO CONFIG FILE]
602
- csdx cm:bulk-publish:unpublished-entries -c [PATH TO CONFIG FILE]
791
+ Generate a config file at the current working directory using `csdx cm:bulk-publish:configure --alias [ALIAS]`
792
+ csdx cm:stacks:unpublish --config [PATH TO CONFIG FILE]
793
+ csdx cm:stacks:unpublish -c [PATH TO CONFIG FILE]
794
+
795
+ Using --retry-failed flag
796
+ csdx cm:stacks:unpublish --retry-failed [LOG FILE NAME]
797
+
798
+ No content type
799
+ csdx cm:stacks:unpublish --environment [SOURCE ENV] --locale [LOCALE] (Will unpublish all entries from all content
800
+ types and assets from the source environment)
801
+
802
+ Using --only-assets
803
+ csdx cm:stacks:unpublish --environment [SOURCE ENV] --locale [LOCALE] --only-assets (Will unpublish only assets from
804
+ the source environment)
603
805
 
604
- Using --retryFailed or -r flag
605
- csdx cm:bulk-publish:unpublished-entries --retryFailed [LOG FILE NAME]
606
- csdx cm:bulk-publish:unpublished-entries -r [LOG FILE NAME]
806
+ Using --only-entries
807
+ csdx cm:stacks:unpublish --environment [SOURCE ENV] --locale [LOCALE] --only-entries (Will unpublish only entries, all
808
+ entries, from the source environment)
809
+ csdx cm:stacks:unpublish --contentType [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --only-entries
810
+ (Will unpublish only entries, (from CONTENT TYPE) from the source environment)
607
811
 
608
- Using --branch or -B flag
609
- csdx cm:bulk-publish:unpublished-entries -b -t [CONTENT TYPES] -e [ENVIRONMENTS] -l LOCALE -a [MANAGEMENT TOKEN ALIAS]
610
- -B [BRANCH NAME] -s [SOURCE ENV]
812
+ Using --branch flag
813
+ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE]
814
+ --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
611
815
  ```
612
816
 
613
- _See code: [src/commands/cm/bulk-publish/unpublished-entries.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/unpublished-entries.js)_
817
+ _See code: [src/commands/cm/stacks/unpublish.js](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/stacks/unpublish.js)_
614
818
  <!-- commandsstop -->