@@ -8,66 +8,65 @@ 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
- * [ cli-cm-regex-validate ] ( #cli-cm-regex-validate )
12
- * [ Usage] ( #usage )
13
- * [ Commands] ( #commands )
11
+
12
+ - [ Usage] ( #usage )
13
+ - [ Commands] ( #commands )
14
14
<!-- tocstop -->
15
15
16
16
# Usage
17
17
18
18
<!-- usage -->
19
+
19
20
``` sh-session
20
- $ npm install -g @contentstack/cli-cm-regex-validate
21
+ $ npm install -g @contentstack/cli
22
+ $ csdx plugins:install @contentstack/cli-cm-regex-validate
21
23
$ csdx COMMAND
22
24
running command...
23
- $ csdx (-- version)
24
- @contentstack/cli-cm-regex-validate/1.1.4 darwin-arm64 node-v16.19 .0
25
+ $ csdx (-v | --version | version)
26
+ @contentstack/cli-cm-regex-validate/1.1.5 darwin-x64 node-v16.17 .0
25
27
$ csdx --help [COMMAND]
26
28
USAGE
27
29
$ csdx COMMAND
28
30
...
29
31
```
32
+
30
33
<!-- usagestop -->
31
34
32
35
# Commands
33
36
34
37
<!-- commands -->
35
- * [ ` csdx cm:stacks:validate-regex ` ] ( #csdx-cmstacksvalidate-regex )
38
+
39
+ - [ ` csdx cm:stacks:validate-regex ` ] ( #csdx-cmstacksvalidate-regex )
36
40
37
41
## ` csdx cm:stacks:validate-regex `
38
42
39
43
This command is used to find all the invalid regexes present in the content types and global fields of your stack.
40
44
41
45
```
42
46
USAGE
43
- $ csdx cm:stacks:validate-regex [-h] [-a <value>] [-c] [-g] [-f <value>]
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.
44
55
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
56
+ -g, --globalField To find invalid regexes within the global fields
52
57
53
- DESCRIPTION
54
- This command is used to find all the invalid regexes present in the content types and global fields of your stack.
58
+ -h, --help To show the flags that can be used with this CLI command
55
59
56
60
EXAMPLES
57
61
$ csdx cm:stacks:validate-regex
58
-
59
62
$ csdx cm:stacks:validate-regex -a <management_token_alias>
60
-
61
63
$ csdx cm:stacks:validate-regex -c
62
-
63
64
$ csdx cm:stacks:validate-regex -g
64
-
65
65
$ csdx cm:stacks:validate-regex -f <path/to/the/directory>
66
-
67
66
$ csdx cm:stacks:validate-regex -a <management_token_alias> -c -g
68
-
69
67
$ csdx cm:stacks:validate-regex -a <management_token_alias> -c -g -f <path/to/the/directory>
70
68
```
71
69
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 ) _
70
+ _ See code: [ src/commands/cm/stacks/validate-regex.ts] ( https://github.com/contentstack/cli-cm-regex-validate/blob/v1.1.5/src/commands/cm/stacks/validate-regex.ts ) _
71
+
73
72
<!-- commandsstop -->
0 commit comments