Skip to content

Commit 1d0ca05

Browse files
authored
Merge pull request #78 from contentstack/staging
Merge staging to main
2 parents 5c5b925 + 21c2bc3 commit 1d0ca05

File tree

4 files changed

+265
-453
lines changed

4 files changed

+265
-453
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
/yarn.lock
1010
node_modules
1111
/coverage
12-
/results
12+
/results
13+
oclif.manifest.json

README.md

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,45 @@
1-
# cli-cm-regex-validate
1+
# Regex Validation CLI Plugin
22

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.
47

58
[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
69
[![Version](https://img.shields.io/npm/v/cli-cm-regex-validate.svg)](https://npmjs.org/package/cli-cm-regex-validate)
710
[![Downloads/week](https://img.shields.io/npm/dw/cli-cm-regex-validate.svg)](https://npmjs.org/package/cli-cm-regex-validate)
811
[![License](https://img.shields.io/npm/l/cli-cm-regex-validate.svg)](https://github.com/contentstack/cli-cm-regex-validate/blob/master/package.json)
912

1013
<!-- toc -->
11-
* [cli-cm-regex-validate](#cli-cm-regex-validate)
14+
* [Regex Validation CLI Plugin](#regex-validation-cli-plugin)
1215
* [Usage](#usage)
1316
* [Commands](#commands)
1417
<!-- tocstop -->
1518

1619
# Usage
1720

18-
<!-- usage -->
21+
<!-- usage-no-overwrite -->
22+
#### Step 1:
1923
```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
2229
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+
2532
$ csdx --help [COMMAND]
2633
USAGE
2734
$ csdx COMMAND
2835
...
2936
```
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 -->
3140

41+
#### Step 3:
42+
[Configured management token alias](https://www.contentstack.com/docs/developers/cli/cli-authentication#add-management-token)
3243
# Commands
3344

3445
<!-- commands -->
@@ -69,5 +80,5 @@ EXAMPLES
6980
$ csdx cm:stacks:validate-regex -a <management_token_alias> -c -g -f <path/to/the/directory>
7081
```
7182

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)_
7384
<!-- commandsstop -->

0 commit comments

Comments
 (0)