|
1 |
| -# cli-cm-regex-validate |
| 1 | +# Regex Validation CLI Plugin |
2 | 2 |
|
3 |
| -Validate Fields with Regex Property of Content Type and Global Field in a Stack |
| 3 | +The “Regex Validation” plugin in Contentstack CLI allows users to search for invalid regexes within the content types and global fields of their stack. |
| 4 | + |
| 5 | +Using the CLI “Regex Validation” plugin, you can find the invalid regexes within your stack |
| 6 | +and rectify them. |
4 | 7 |
|
5 | 8 | [](https://oclif.io)
|
6 | 9 | [](https://npmjs.org/package/cli-cm-regex-validate)
|
7 | 10 | [](https://npmjs.org/package/cli-cm-regex-validate)
|
8 | 11 | [](https://github.com/contentstack/cli-cm-regex-validate/blob/master/package.json)
|
9 | 12 |
|
10 | 13 | <!-- toc -->
|
11 |
| -* [cli-cm-regex-validate](#cli-cm-regex-validate) |
| 14 | +* [Regex Validation CLI Plugin](#regex-validation-cli-plugin) |
12 | 15 | * [Usage](#usage)
|
13 | 16 | * [Commands](#commands)
|
14 | 17 | <!-- tocstop -->
|
15 | 18 |
|
16 | 19 | # Usage
|
17 | 20 |
|
18 |
| -<!-- usage --> |
| 21 | +<!-- usage-no-overwrite --> |
| 22 | +#### Step 1: |
19 | 23 | ```sh-session
|
20 |
| -$ npm install -g @contentstack/cli-cm-regex-validate |
21 |
| -$ csdx COMMAND |
| 24 | +$ npm install -g @contentstack/cli |
| 25 | + |
| 26 | +$ csdx plugins:install https://github.com/contentstack/cli-cm-regex-validate/releases/download/v1.1.12/contentstack-cli-cm-regex-validate-1.1.12.tgz |
| 27 | + |
| 28 | +$ csdx plugins |
22 | 29 | running command...
|
23 |
| -$ csdx (--version) |
24 |
| -@contentstack/cli-cm-regex-validate/1.1.6 darwin-arm64 node-v18.15.0 |
| 30 | +@contentstack/cli-cm-regex-validate/1.1.12 darwin-arm64 node-v20.8.0 |
| 31 | + |
25 | 32 | $ csdx --help [COMMAND]
|
26 | 33 | USAGE
|
27 | 34 | $ csdx COMMAND
|
28 | 35 | ...
|
29 | 36 | ```
|
30 |
| -<!-- usagestop --> |
| 37 | +#### Step 2: |
| 38 | +[Set the region](https://www.contentstack.com/docs/developers/cli/configure-regions-in-the-cli#set-region) |
| 39 | +<!-- usagestop-overwrite --> |
31 | 40 |
|
| 41 | +#### Step 3: |
| 42 | +[Configured management token alias](https://www.contentstack.com/docs/developers/cli/cli-authentication#add-management-token) |
32 | 43 | # Commands
|
33 | 44 |
|
34 | 45 | <!-- commands -->
|
@@ -69,5 +80,5 @@ EXAMPLES
|
69 | 80 | $ csdx cm:stacks:validate-regex -a <management_token_alias> -c -g -f <path/to/the/directory>
|
70 | 81 | ```
|
71 | 82 |
|
72 |
| -_See code: [src/commands/cm/stacks/validate-regex.ts](https://github.com/contentstack/cli-cm-regex-validate/blob/v1.1.6/src/commands/cm/stacks/validate-regex.ts)_ |
| 83 | +_See code: [src/commands/cm/stacks/validate-regex.ts](https://github.com/contentstack/cli-cm-regex-validate/blob/v1.1.12/src/commands/cm/stacks/validate-regex.ts)_ |
73 | 84 | <!-- commandsstop -->
|
0 commit comments