@contentstack/cli 2.0.0-beta.4 → 2.0.0-beta.5
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.
- package/LICENSE +1 -1
- package/README.md +85 -206
- package/lib/hooks/prerun/latest-version-warning.js +5 -1
- package/oclif.manifest.json +1 -1
- package/package.json +19 -19
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli
|
|
|
18
18
|
$ csdx COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ csdx (--version|-v)
|
|
21
|
-
@contentstack/cli/2.0.0-beta.
|
|
21
|
+
@contentstack/cli/2.0.0-beta.5 linux-x64 node-v22.22.0
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -61,10 +61,8 @@ USAGE
|
|
|
61
61
|
* [`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)
|
|
62
62
|
* [`csdx cm:entries:unpublish`](#csdx-cmentriesunpublish)
|
|
63
63
|
* [`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)
|
|
64
|
-
* [`csdx cm:export-to-csv`](#csdx-cmexport-to-csv)
|
|
65
64
|
* [`csdx cm:stacks:audit`](#csdx-cmstacksaudit)
|
|
66
65
|
* [`csdx cm:stacks:audit:fix`](#csdx-cmstacksauditfix)
|
|
67
|
-
* [`csdx cm:stacks:clone [--source-branch <value>] [--target-branch <value>] [--source-management-token-alias <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b] [--source-stack-api-key <value>] [--destination-stack-api-key <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksclone---source-branch-value---target-branch-value---source-management-token-alias-value---destination-management-token-alias-value--n-value---type-ab---source-stack-api-key-value---destination-stack-api-key-value---import-webhook-status-disablecurrent)
|
|
68
66
|
* [`csdx cm:stacks:export [--config <value>] [--stack-api-key <value>] [--data-dir <value>] [--alias <value>] [--module <value>] [--content-types <value>] [--branch <value>] [--secured-assets]`](#csdx-cmstacksexport---config-value---stack-api-key-value---data-dir-value---alias-value---module-value---content-types-value---branch-value---secured-assets)
|
|
69
67
|
* [`csdx cm:stacks:import [--config <value>] [--stack-api-key <value>] [--data-dir <value>] [--alias <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksimport---config-value---stack-api-key-value---data-dir-value---alias-value---module-value---backup-dir-value---branch-value---import-webhook-status-disablecurrent)
|
|
70
68
|
* [`csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`](#csdx-cmstacksimport-setup--k-value--d-value--a-value---modules-valuevalue)
|
|
@@ -79,16 +77,19 @@ USAGE
|
|
|
79
77
|
* [`csdx config:get:ea-header`](#csdx-configgetea-header)
|
|
80
78
|
* [`csdx config:get:early-access-header`](#csdx-configgetearly-access-header)
|
|
81
79
|
* [`csdx config:get:log`](#csdx-configgetlog)
|
|
80
|
+
* [`csdx config:get:proxy`](#csdx-configgetproxy)
|
|
82
81
|
* [`csdx config:get:rate-limit`](#csdx-configgetrate-limit)
|
|
83
82
|
* [`csdx config:get:region`](#csdx-configgetregion)
|
|
84
83
|
* [`csdx config:remove:base-branch`](#csdx-configremovebase-branch)
|
|
85
84
|
* [`csdx config:remove:ea-header`](#csdx-configremoveea-header)
|
|
86
85
|
* [`csdx config:remove:early-access-header`](#csdx-configremoveearly-access-header)
|
|
86
|
+
* [`csdx config:remove:proxy`](#csdx-configremoveproxy)
|
|
87
87
|
* [`csdx config:remove:rate-limit`](#csdx-configremoverate-limit)
|
|
88
88
|
* [`csdx config:set:base-branch`](#csdx-configsetbase-branch)
|
|
89
89
|
* [`csdx config:set:ea-header`](#csdx-configsetea-header)
|
|
90
90
|
* [`csdx config:set:early-access-header`](#csdx-configsetearly-access-header)
|
|
91
91
|
* [`csdx config:set:log`](#csdx-configsetlog)
|
|
92
|
+
* [`csdx config:set:proxy`](#csdx-configsetproxy)
|
|
92
93
|
* [`csdx config:set:rate-limit`](#csdx-configsetrate-limit)
|
|
93
94
|
* [`csdx config:set:region [REGION]`](#csdx-configsetregion-region)
|
|
94
95
|
* [`csdx help [COMMAND]`](#csdx-help-command)
|
|
@@ -2000,138 +2001,6 @@ EXAMPLES
|
|
|
2000
2001
|
|
|
2001
2002
|
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/update-and-publish.js)_
|
|
2002
2003
|
|
|
2003
|
-
## `csdx cm:export-to-csv`
|
|
2004
|
-
|
|
2005
|
-
Export entries, taxonomies, terms or organization users to csv using this command
|
|
2006
|
-
|
|
2007
|
-
```
|
|
2008
|
-
USAGE
|
|
2009
|
-
$ csdx cm:export-to-csv [--action entries|users|teams|taxonomies] [-a <value>] [--org <value>] [-n <value>] [-k
|
|
2010
|
-
<value>] [--org-name <value>] [--locale <value>] [--content-type <value>] [--branch <value>] [--team-uid <value>]
|
|
2011
|
-
[--taxonomy-uid <value>] [--include-fallback] [--fallback-locale <value>] [--delimiter <value>]
|
|
2012
|
-
|
|
2013
|
-
FLAGS
|
|
2014
|
-
-a, --alias=<value> Alias of the management token.
|
|
2015
|
-
-k, --stack-api-key=<value> API Key of the source stack.
|
|
2016
|
-
-n, --stack-name=<value> Name of the stack that needs to be created as CSV filename.
|
|
2017
|
-
--action=<option> Option to export data (entries, users, teams, taxonomies). <options:
|
|
2018
|
-
entries|users|teams|taxonomies>
|
|
2019
|
-
<options: entries|users|teams|taxonomies>
|
|
2020
|
-
--branch=<value> Branch from which entries will be exported.
|
|
2021
|
-
--content-type=<value> Content type of entries that will be exported.
|
|
2022
|
-
--delimiter=<value> [default: ,] [optional] Provide a delimiter to separate individual data fields within
|
|
2023
|
-
the CSV file. For example: cm:export-to-csv --delimiter '|'
|
|
2024
|
-
--fallback-locale=<value> [Optional] Specify a specific fallback locale for taxonomy export. This locale will be
|
|
2025
|
-
used when a taxonomy term doesn't exist in the primary locale. Takes priority over
|
|
2026
|
-
branch fallback hierarchy when both are specified.
|
|
2027
|
-
--include-fallback [Optional] Include fallback locale data when exporting taxonomies. When enabled, if a
|
|
2028
|
-
taxonomy term doesn't exist in the specified locale, it will fallback to the hierarchy
|
|
2029
|
-
defined in the branch settings.
|
|
2030
|
-
--locale=<value> Locale of entries that will be exported.
|
|
2031
|
-
--org=<value> Provide organization UID to clone org users.
|
|
2032
|
-
--org-name=<value> Name of the organization that needs to be created as CSV filename.
|
|
2033
|
-
--taxonomy-uid=<value> Provide the taxonomy UID of the related terms you want to export.
|
|
2034
|
-
--team-uid=<value> Provide the UID of a specific team in an organization.
|
|
2035
|
-
|
|
2036
|
-
DESCRIPTION
|
|
2037
|
-
Export entries, taxonomies, terms or organization users to csv using this command
|
|
2038
|
-
|
|
2039
|
-
EXAMPLES
|
|
2040
|
-
$ csdx cm:export-to-csv
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
Exporting entries to CSV
|
|
2045
|
-
|
|
2046
|
-
$ csdx cm:export-to-csv --action <entries> --locale <locale> --alias <management-token-alias> --content-type <content-type>
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
Exporting entries to CSV with stack name provided and branch name provided
|
|
2051
|
-
|
|
2052
|
-
$ csdx cm:export-to-csv --action <entries> --locale <locale> --alias <management-token-alias> --content-type <content-type> --stack-name <stack-name> --branch <branch-name>
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
Exporting organization users to CSV
|
|
2057
|
-
|
|
2058
|
-
$ csdx cm:export-to-csv --action <users> --org <org-uid>
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
Exporting organization users to CSV with organization name provided
|
|
2063
|
-
|
|
2064
|
-
$ csdx cm:export-to-csv --action <users> --org <org-uid> --org-name <org-name>
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
Exporting organization teams to CSV
|
|
2069
|
-
|
|
2070
|
-
$ csdx cm:export-to-csv --action <teams>
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
Exporting organization teams to CSV with org UID
|
|
2075
|
-
|
|
2076
|
-
$ csdx cm:export-to-csv --action <teams> --org <org-uid>
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
Exporting organization teams to CSV with team UID
|
|
2081
|
-
|
|
2082
|
-
$ csdx cm:export-to-csv --action <teams> --team-uid <team-uid>
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
Exporting organization teams to CSV with org UID and team UID
|
|
2087
|
-
|
|
2088
|
-
$ csdx cm:export-to-csv --action <teams> --org <org-uid> --team-uid <team-uid>
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
Exporting organization teams to CSV with org UID and team UID
|
|
2093
|
-
|
|
2094
|
-
$ csdx cm:export-to-csv --action <teams> --org <org-uid> --team-uid <team-uid> --org-name <org-name>
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
Exporting taxonomies and related terms to a .CSV file with the provided taxonomy UID
|
|
2099
|
-
|
|
2100
|
-
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --taxonomy-uid <taxonomy-uid>
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
Exporting taxonomies and respective terms to a .CSV file
|
|
2105
|
-
|
|
2106
|
-
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias>
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
Exporting taxonomies and respective terms to a .CSV file with a delimiter
|
|
2111
|
-
|
|
2112
|
-
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --delimiter <delimiter>
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
Exporting taxonomies with specific locale
|
|
2117
|
-
|
|
2118
|
-
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --locale <locale>
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
Exporting taxonomies with fallback locale support
|
|
2123
|
-
|
|
2124
|
-
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --locale <locale> --include-fallback
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
Exporting taxonomies with custom fallback locale
|
|
2129
|
-
|
|
2130
|
-
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --locale <locale> --include-fallback --fallback-locale <fallback-locale>
|
|
2131
|
-
```
|
|
2132
|
-
|
|
2133
|
-
_See code: [@contentstack/cli-cm-export-to-csv](https://github.com/contentstack/cli/blob/main/packages/contentstack-export-to-csv/src/commands/cm/export-to-csv.js)_
|
|
2134
|
-
|
|
2135
2004
|
## `csdx cm:stacks:audit`
|
|
2136
2005
|
|
|
2137
2006
|
Perform audits and find possible errors in the exported Contentstack data
|
|
@@ -2139,13 +2008,14 @@ Perform audits and find possible errors in the exported Contentstack data
|
|
|
2139
2008
|
```
|
|
2140
2009
|
USAGE
|
|
2141
2010
|
$ csdx cm:stacks:audit [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
|
|
2142
|
-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...]
|
|
2143
|
-
[--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output
|
|
2011
|
+
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules|composable-studio...]
|
|
2012
|
+
[--columns <value>] [--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output
|
|
2013
|
+
csv|json|yaml]
|
|
2144
2014
|
|
|
2145
2015
|
FLAGS
|
|
2146
2016
|
--modules=<option>... Provide the list of modules to be audited
|
|
2147
|
-
<options:
|
|
2148
|
-
|
|
2017
|
+
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-ru
|
|
2018
|
+
les|composable-studio>
|
|
2149
2019
|
--report-path=<value> Path to store the audit reports
|
|
2150
2020
|
|
|
2151
2021
|
COMMON FLAGS
|
|
@@ -2187,9 +2057,10 @@ Perform audits and fix possible errors in the exported Contentstack data.
|
|
|
2187
2057
|
```
|
|
2188
2058
|
USAGE
|
|
2189
2059
|
$ csdx cm:stacks:audit:fix [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
|
|
2190
|
-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...]
|
|
2191
|
-
--copy-dir] [--fix-only
|
|
2192
|
-
|
|
2060
|
+
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules|composable-studio...]
|
|
2061
|
+
[--copy-path <value> --copy-dir] [--fix-only
|
|
2062
|
+
reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value>] [--sort <value>]
|
|
2063
|
+
[--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
|
|
2193
2064
|
|
|
2194
2065
|
FLAGS
|
|
2195
2066
|
--copy-dir Create backup from the original data.
|
|
@@ -2197,8 +2068,8 @@ FLAGS
|
|
|
2197
2068
|
--fix-only=<option>... Provide the list of fix options
|
|
2198
2069
|
<options: reference|global_field|json:rte|json:extension|blocks|group|content_types>
|
|
2199
2070
|
--modules=<option>... Provide the list of modules to be audited
|
|
2200
|
-
<options:
|
|
2201
|
-
|
|
2071
|
+
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-r
|
|
2072
|
+
ules|composable-studio>
|
|
2202
2073
|
--report-path=<value> Path to store the audit reports
|
|
2203
2074
|
|
|
2204
2075
|
COMMON FLAGS
|
|
@@ -2235,60 +2106,6 @@ EXAMPLES
|
|
|
2235
2106
|
|
|
2236
2107
|
_See code: [@contentstack/cli-audit](https://github.com/contentstack/audit/blob/main/packages/contentstack-audit/src/commands/cm/stacks/audit/fix.ts)_
|
|
2237
2108
|
|
|
2238
|
-
## `csdx cm:stacks:clone [--source-branch <value>] [--target-branch <value>] [--source-management-token-alias <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b] [--source-stack-api-key <value>] [--destination-stack-api-key <value>] [--import-webhook-status disable|current]`
|
|
2239
|
-
|
|
2240
|
-
Clone data (structure/content or both) of a stack into another stack
|
|
2241
|
-
|
|
2242
|
-
```
|
|
2243
|
-
USAGE
|
|
2244
|
-
$ csdx cm:stacks:clone [--source-branch <value>] [--target-branch <value>] [--source-management-token-alias
|
|
2245
|
-
<value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b] [--source-stack-api-key <value>]
|
|
2246
|
-
[--destination-stack-api-key <value>] [--import-webhook-status disable|current]
|
|
2247
|
-
|
|
2248
|
-
FLAGS
|
|
2249
|
-
-c, --config=<value> Path for the external configuration
|
|
2250
|
-
-n, --stack-name=<value> Provide a name for the new stack to store the cloned content.
|
|
2251
|
-
-y, --yes Force override all Marketplace prompts.
|
|
2252
|
-
--destination-management-token-alias=<value> Destination management token alias.
|
|
2253
|
-
--destination-stack-api-key=<value> Destination stack API key
|
|
2254
|
-
--import-webhook-status=<option> [default: disable] [default: disable] (optional) The status of the
|
|
2255
|
-
import webhook. <options: disable|current>
|
|
2256
|
-
<options: disable|current>
|
|
2257
|
-
--skip-audit (optional) Skips the audit fix that occurs during an import
|
|
2258
|
-
operation.
|
|
2259
|
-
--source-branch=<value> Branch of the source stack.
|
|
2260
|
-
--source-branch-alias=<value> Alias of Branch of the source stack.
|
|
2261
|
-
--source-management-token-alias=<value> Source management token alias.
|
|
2262
|
-
--source-stack-api-key=<value> Source stack API key
|
|
2263
|
-
--target-branch=<value> Branch of the target stack.
|
|
2264
|
-
--target-branch-alias=<value> Alias of Branch of the target stack.
|
|
2265
|
-
--type=<option> Type of data to clone. You can select option a or b.
|
|
2266
|
-
a) Structure (all modules except entries & assets).
|
|
2267
|
-
b) Structure with content (all modules including entries & assets).
|
|
2268
|
-
|
|
2269
|
-
<options: a|b>
|
|
2270
|
-
|
|
2271
|
-
DESCRIPTION
|
|
2272
|
-
Clone data (structure/content or both) of a stack into another stack
|
|
2273
|
-
Use this plugin to automate the process of cloning a stack in few steps.
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
EXAMPLES
|
|
2277
|
-
$ csdx cm:stacks:clone
|
|
2278
|
-
|
|
2279
|
-
$ csdx cm:stacks:clone --source-branch <source-branch-name> --target-branch <target-branch-name> --yes
|
|
2280
|
-
|
|
2281
|
-
$ csdx cm:stacks:clone --source-stack-api-key <apiKey> --destination-stack-api-key <apiKey>
|
|
2282
|
-
|
|
2283
|
-
$ csdx cm:stacks:clone --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias>
|
|
2284
|
-
|
|
2285
|
-
$ csdx cm:stacks:clone --source-branch --target-branch --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias>
|
|
2286
|
-
|
|
2287
|
-
$ csdx cm:stacks:clone --source-branch --target-branch --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias> --type <value a or b>
|
|
2288
|
-
```
|
|
2289
|
-
|
|
2290
|
-
_See code: [@contentstack/cli-cm-clone](https://github.com/contentstack/cli/blob/main/packages/contentstack-clone/src/commands/cm/stacks/clone.js)_
|
|
2291
|
-
|
|
2292
2109
|
## `csdx cm:stacks:export [--config <value>] [--stack-api-key <value>] [--data-dir <value>] [--alias <value>] [--module <value>] [--content-types <value>] [--branch <value>] [--secured-assets]`
|
|
2293
2110
|
|
|
2294
2111
|
Export content from a stack
|
|
@@ -2861,6 +2678,23 @@ EXAMPLES
|
|
|
2861
2678
|
|
|
2862
2679
|
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/get/log.ts)_
|
|
2863
2680
|
|
|
2681
|
+
## `csdx config:get:proxy`
|
|
2682
|
+
|
|
2683
|
+
Get proxy configuration for CLI
|
|
2684
|
+
|
|
2685
|
+
```
|
|
2686
|
+
USAGE
|
|
2687
|
+
$ csdx config:get:proxy
|
|
2688
|
+
|
|
2689
|
+
DESCRIPTION
|
|
2690
|
+
Get proxy configuration for CLI
|
|
2691
|
+
|
|
2692
|
+
EXAMPLES
|
|
2693
|
+
$ csdx config:get:proxy
|
|
2694
|
+
```
|
|
2695
|
+
|
|
2696
|
+
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/get/proxy.ts)_
|
|
2697
|
+
|
|
2864
2698
|
## `csdx config:get:rate-limit`
|
|
2865
2699
|
|
|
2866
2700
|
Get rate-limit of organizations
|
|
@@ -2970,6 +2804,23 @@ EXAMPLES
|
|
|
2970
2804
|
|
|
2971
2805
|
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/remove/early-access-header.ts)_
|
|
2972
2806
|
|
|
2807
|
+
## `csdx config:remove:proxy`
|
|
2808
|
+
|
|
2809
|
+
Remove proxy configuration from global config
|
|
2810
|
+
|
|
2811
|
+
```
|
|
2812
|
+
USAGE
|
|
2813
|
+
$ csdx config:remove:proxy
|
|
2814
|
+
|
|
2815
|
+
DESCRIPTION
|
|
2816
|
+
Remove proxy configuration from global config
|
|
2817
|
+
|
|
2818
|
+
EXAMPLES
|
|
2819
|
+
$ csdx config:remove:proxy
|
|
2820
|
+
```
|
|
2821
|
+
|
|
2822
|
+
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/remove/proxy.ts)_
|
|
2823
|
+
|
|
2973
2824
|
## `csdx config:remove:rate-limit`
|
|
2974
2825
|
|
|
2975
2826
|
Remove rate-limit of the organization
|
|
@@ -3101,6 +2952,34 @@ EXAMPLES
|
|
|
3101
2952
|
|
|
3102
2953
|
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/set/log.ts)_
|
|
3103
2954
|
|
|
2955
|
+
## `csdx config:set:proxy`
|
|
2956
|
+
|
|
2957
|
+
Set proxy configuration for CLI
|
|
2958
|
+
|
|
2959
|
+
```
|
|
2960
|
+
USAGE
|
|
2961
|
+
$ csdx config:set:proxy --host <value> --port <value> --protocol http|https [--username <value>]
|
|
2962
|
+
|
|
2963
|
+
FLAGS
|
|
2964
|
+
--host=<value> (required) Proxy host address
|
|
2965
|
+
--port=<value> (required) Proxy port number
|
|
2966
|
+
--protocol=<option> (required) [default: http] Proxy protocol (http or https)
|
|
2967
|
+
<options: http|https>
|
|
2968
|
+
--username=<value> Proxy username (optional)
|
|
2969
|
+
|
|
2970
|
+
DESCRIPTION
|
|
2971
|
+
Set proxy configuration for CLI
|
|
2972
|
+
|
|
2973
|
+
EXAMPLES
|
|
2974
|
+
$ csdx config:set:proxy --host 127.0.0.1 --port 3128
|
|
2975
|
+
|
|
2976
|
+
$ csdx config:set:proxy --host proxy.example.com --port 8080 --protocol https
|
|
2977
|
+
|
|
2978
|
+
$ csdx config:set:proxy --host proxy.example.com --port 8080 --username user
|
|
2979
|
+
```
|
|
2980
|
+
|
|
2981
|
+
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/set/proxy.ts)_
|
|
2982
|
+
|
|
3104
2983
|
## `csdx config:set:rate-limit`
|
|
3105
2984
|
|
|
3106
2985
|
Set rate-limit for CLI
|
|
@@ -3206,7 +3085,7 @@ DESCRIPTION
|
|
|
3206
3085
|
Display help for csdx.
|
|
3207
3086
|
```
|
|
3208
3087
|
|
|
3209
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.
|
|
3088
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.37/src/commands/help.ts)_
|
|
3210
3089
|
|
|
3211
3090
|
## `csdx launch`
|
|
3212
3091
|
|
|
@@ -3523,7 +3402,7 @@ EXAMPLES
|
|
|
3523
3402
|
$ csdx plugins
|
|
3524
3403
|
```
|
|
3525
3404
|
|
|
3526
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
3405
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/index.ts)_
|
|
3527
3406
|
|
|
3528
3407
|
## `csdx plugins:add PLUGIN`
|
|
3529
3408
|
|
|
@@ -3597,7 +3476,7 @@ EXAMPLES
|
|
|
3597
3476
|
$ csdx plugins:inspect myplugin
|
|
3598
3477
|
```
|
|
3599
3478
|
|
|
3600
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
3479
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/inspect.ts)_
|
|
3601
3480
|
|
|
3602
3481
|
## `csdx plugins:install PLUGIN`
|
|
3603
3482
|
|
|
@@ -3646,7 +3525,7 @@ EXAMPLES
|
|
|
3646
3525
|
$ csdx plugins:install someuser/someplugin
|
|
3647
3526
|
```
|
|
3648
3527
|
|
|
3649
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
3528
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/install.ts)_
|
|
3650
3529
|
|
|
3651
3530
|
## `csdx plugins:link PATH`
|
|
3652
3531
|
|
|
@@ -3677,7 +3556,7 @@ EXAMPLES
|
|
|
3677
3556
|
$ csdx plugins:link myplugin
|
|
3678
3557
|
```
|
|
3679
3558
|
|
|
3680
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
3559
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/link.ts)_
|
|
3681
3560
|
|
|
3682
3561
|
## `csdx plugins:remove [PLUGIN]`
|
|
3683
3562
|
|
|
@@ -3718,7 +3597,7 @@ FLAGS
|
|
|
3718
3597
|
--reinstall Reinstall all plugins after uninstalling.
|
|
3719
3598
|
```
|
|
3720
3599
|
|
|
3721
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
3600
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/reset.ts)_
|
|
3722
3601
|
|
|
3723
3602
|
## `csdx plugins:uninstall [PLUGIN]`
|
|
3724
3603
|
|
|
@@ -3746,7 +3625,7 @@ EXAMPLES
|
|
|
3746
3625
|
$ csdx plugins:uninstall myplugin
|
|
3747
3626
|
```
|
|
3748
3627
|
|
|
3749
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
3628
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/uninstall.ts)_
|
|
3750
3629
|
|
|
3751
3630
|
## `csdx plugins:unlink [PLUGIN]`
|
|
3752
3631
|
|
|
@@ -3790,7 +3669,7 @@ DESCRIPTION
|
|
|
3790
3669
|
Update installed plugins.
|
|
3791
3670
|
```
|
|
3792
3671
|
|
|
3793
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
3672
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/update.ts)_
|
|
3794
3673
|
|
|
3795
3674
|
## `csdx tokens`
|
|
3796
3675
|
|
|
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const cli_utilities_1 = require("@contentstack/cli-utilities");
|
|
5
5
|
const semver = tslib_1.__importStar(require("semver"));
|
|
6
6
|
const versionUpgradeWarningFrequency = {
|
|
7
|
-
versionSyncDuration: 3 * 24 * 60 * 60 * 1000,
|
|
7
|
+
versionSyncDuration: 3 * 24 * 60 * 60 * 1000, // 3 days
|
|
8
8
|
};
|
|
9
9
|
async function default_1(_opts) {
|
|
10
10
|
var _a, _b;
|
|
@@ -12,6 +12,10 @@ async function default_1(_opts) {
|
|
|
12
12
|
const today = new Date().toISOString().split('T')[0];
|
|
13
13
|
const logger = new cli_utilities_1.LoggerService(process.env.CS_CLI_LOG_PATH || process.cwd(), 'cli-log');
|
|
14
14
|
let cache = { lastChecked: 0, lastWarnedDate: '', latestVersion: '' };
|
|
15
|
+
// if CLI_VERSION is not set or is not the same as the current version, set it
|
|
16
|
+
if (!cli_utilities_1.configHandler.get('CLI_VERSION') || cli_utilities_1.configHandler.get('CLI_VERSION') !== this.config.version) {
|
|
17
|
+
cli_utilities_1.configHandler.set('CLI_VERSION', this.config.version); // set current version in configHandler
|
|
18
|
+
}
|
|
15
19
|
if (!cli_utilities_1.configHandler.get('versionUpgradeWarningFrequency')) {
|
|
16
20
|
cli_utilities_1.configHandler.set('versionUpgradeWarningFrequency', versionUpgradeWarningFrequency);
|
|
17
21
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli",
|
|
3
3
|
"description": "Command-line tool (CLI) to interact with Contentstack",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.5",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run.js"
|
|
@@ -22,24 +22,24 @@
|
|
|
22
22
|
"prepack": "pnpm compile && oclif manifest && oclif readme"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentstack/cli-audit": "~2.0.0-beta.
|
|
26
|
-
"@contentstack/cli-auth": "~2.0.0-beta.
|
|
27
|
-
"@contentstack/cli-cm-bootstrap": "~2.0.0-beta.
|
|
28
|
-
"@contentstack/cli-cm-branches": "~1.6.
|
|
29
|
-
"@contentstack/cli-cm-bulk-publish": "~1.10.
|
|
30
|
-
"@contentstack/cli-cm-clone": "~2.0.0-beta.
|
|
31
|
-
"@contentstack/cli-cm-export": "~2.0.0-beta.
|
|
32
|
-
"@contentstack/cli-cm-export-to-csv": "~1.
|
|
33
|
-
"@contentstack/cli-cm-import": "~2.0.0-beta.
|
|
34
|
-
"@contentstack/cli-cm-import-setup": "~2.0.0-beta.
|
|
35
|
-
"@contentstack/cli-cm-seed": "~2.0.0-beta.
|
|
36
|
-
"@contentstack/cli-command": "~1.7.
|
|
37
|
-
"@contentstack/cli-config": "~1.
|
|
25
|
+
"@contentstack/cli-audit": "~2.0.0-beta.2",
|
|
26
|
+
"@contentstack/cli-auth": "~2.0.0-beta.2",
|
|
27
|
+
"@contentstack/cli-cm-bootstrap": "~2.0.0-beta.4",
|
|
28
|
+
"@contentstack/cli-cm-branches": "~1.6.3",
|
|
29
|
+
"@contentstack/cli-cm-bulk-publish": "~1.10.6",
|
|
30
|
+
"@contentstack/cli-cm-clone": "~2.0.0-beta.5",
|
|
31
|
+
"@contentstack/cli-cm-export": "~2.0.0-beta.5",
|
|
32
|
+
"@contentstack/cli-cm-export-to-csv": "~1.11.0",
|
|
33
|
+
"@contentstack/cli-cm-import": "~2.0.0-beta.4",
|
|
34
|
+
"@contentstack/cli-cm-import-setup": "~2.0.0-beta.3",
|
|
35
|
+
"@contentstack/cli-cm-seed": "~2.0.0-beta.4",
|
|
36
|
+
"@contentstack/cli-command": "~1.7.2",
|
|
37
|
+
"@contentstack/cli-config": "~1.18.0",
|
|
38
38
|
"@contentstack/cli-launch": "1.9.3",
|
|
39
|
-
"@contentstack/cli-migration": "~2.0.0-beta.
|
|
40
|
-
"@contentstack/cli-utilities": "~1.
|
|
41
|
-
"@contentstack/cli-variants": "~2.0.0-beta.
|
|
42
|
-
"@contentstack/management": "~1.
|
|
39
|
+
"@contentstack/cli-migration": "~2.0.0-beta.2",
|
|
40
|
+
"@contentstack/cli-utilities": "~1.17.0",
|
|
41
|
+
"@contentstack/cli-variants": "~2.0.0-beta.4",
|
|
42
|
+
"@contentstack/management": "~1.27.3",
|
|
43
43
|
"@oclif/core": "^4.3.0",
|
|
44
44
|
"@oclif/plugin-help": "^6.2.28",
|
|
45
45
|
"@oclif/plugin-not-found": "^3.2.53",
|
|
@@ -167,4 +167,4 @@
|
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
"repository": "https://github.com/contentstack/cli"
|
|
170
|
-
}
|
|
170
|
+
}
|