@@ -8,65 +8,66 @@ Validate Fields with Regex Property of Content Type and Global Field in a Stack
8
8
[ ![ License] ( https://img.shields.io/npm/l/cli-cm-regex-validate.svg )] ( https://github.com/contentstack/cli-cm-regex-validate/blob/master/package.json )
9
9
10
10
<!-- toc -->
11
-
12
- - [ Usage] ( #usage )
13
- - [ Commands] ( #commands )
11
+ * [ cli-cm-regex-validate ] ( #cli-cm-regex-validate )
12
+ * [ Usage] ( #usage )
13
+ * [ Commands] ( #commands )
14
14
<!-- tocstop -->
15
15
16
16
# Usage
17
17
18
18
<!-- usage -->
19
-
20
19
``` sh-session
21
- $ npm install -g @contentstack/cli
22
- $ csdx plugins:install @contentstack/cli-cm-regex-validate
20
+ $ npm install -g @contentstack/cli-cm-regex-validate
23
21
$ csdx COMMAND
24
22
running command...
25
- $ csdx (-v | --version | version)
26
- @contentstack/cli-cm-regex-validate/1.0.2 darwin-x64 node-v16.17 .0
23
+ $ csdx (-- version)
24
+ @contentstack/cli-cm-regex-validate/1.1.4 darwin-arm64 node-v16.19 .0
27
25
$ csdx --help [COMMAND]
28
26
USAGE
29
27
$ csdx COMMAND
30
28
...
31
29
```
32
-
33
30
<!-- usagestop -->
34
31
35
32
# Commands
36
33
37
34
<!-- commands -->
38
-
39
- - [ ` csdx cm:stacks:validate-regex ` ] ( #csdx-cmstacksvalidate-regex )
35
+ * [ ` csdx cm:stacks:validate-regex ` ] ( #csdx-cmstacksvalidate-regex )
40
36
41
37
## ` csdx cm:stacks:validate-regex `
42
38
43
39
This command is used to find all the invalid regexes present in the content types and global fields of your stack.
44
40
45
41
```
46
42
USAGE
47
- $ csdx cm:stacks:validate-regex
48
-
49
- OPTIONS
50
- -a, --alias=alias Alias (name) assigned to the management token
51
- -c, --contentType To find invalid regexes within the content types
52
-
53
- -f, --filePath=filePath [optional] The path or the location in your file system where the CSV output file should be
54
- stored.
43
+ $ csdx cm:stacks:validate-regex [-h] [-a <value>] [-c] [-g] [-f <value>]
55
44
56
- -g, --globalField To find invalid regexes within the global fields
45
+ FLAGS
46
+ -a, --alias=<value> Alias (name) assigned to the management token
47
+ -c, --contentType To find invalid regexes within the content types
48
+ -f, --filePath=<value> [optional] The path or the location in your file system where the CSV output file should be
49
+ stored.
50
+ -g, --globalField To find invalid regexes within the global fields
51
+ -h, --help To show the flags that can be used with this CLI command
57
52
58
- -h, --help To show the flags that can be used with this CLI command
53
+ DESCRIPTION
54
+ This command is used to find all the invalid regexes present in the content types and global fields of your stack.
59
55
60
56
EXAMPLES
61
57
$ csdx cm:stacks:validate-regex
58
+
62
59
$ csdx cm:stacks:validate-regex -a <management_token_alias>
60
+
63
61
$ csdx cm:stacks:validate-regex -c
62
+
64
63
$ csdx cm:stacks:validate-regex -g
64
+
65
65
$ csdx cm:stacks:validate-regex -f <path/to/the/directory>
66
+
66
67
$ csdx cm:stacks:validate-regex -a <management_token_alias> -c -g
68
+
67
69
$ csdx cm:stacks:validate-regex -a <management_token_alias> -c -g -f <path/to/the/directory>
68
70
```
69
71
70
- _ See code: [ src/commands/cm/stacks/validate-regex.ts] ( https://github.com/contentstack/cli-cm-regex-validate/blob/v1.0.2/src/commands/cm/stacks/validate-regex.ts ) _
71
-
72
+ _ See code: [ src/commands/cm/stacks/validate-regex.ts] ( https://github.com/contentstack/cli-cm-regex-validate/blob/v1.1.4/src/commands/cm/stacks/validate-regex.ts ) _
72
73
<!-- commandsstop -->
0 commit comments