GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cli-plugins/packages/contentstack-cli-cm-regex-validate at main · contentstack/cli-plugins

Expand file tree

/

contentstack-cli-cm-regex-validate

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

contentstack-cli-cm-regex-validate

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
bin
bin
 
 
messages
messages
 
 
skills
skills
 
 
src
src
 
 
test
test
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.mocharc.json
.mocharc.json
 
 
.talismanrc
.talismanrc
 
 
AGENTS.md
AGENTS.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
eslint.config.js
eslint.config.js
 
 
eslint.config.mjs
eslint.config.mjs
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

README.md

Outline

Regex Validation CLI Plugin

The “Regex Validation” plugin in Contentstack CLI allows users to search for invalid regexes within the content types and global fields of their stack.

Using the CLI “Regex Validation” plugin, you can find the invalid regexes within your stack and rectify them.

oclif Version Downloads/week License

  • Regex Validation CLI Plugin
  • Usage
  • Commands

Usage

Step 1:

$ npm install -g @contentstack/cli

$ csdx plugins:install @contentstack/cli-cm-regex-validate

$ csdx plugins
running command...
@contentstack/cli-cm-regex-validate/2.0.1 darwin-arm64 node-v22.x

$ csdx --help [COMMAND]
USAGE
  $ csdx COMMAND
...

Step 2:

Set the region

Step 3:

Configured management token alias

Commands

  • csdx cm:stacks:validate-regex

csdx cm:stacks:validate-regex

This command is used to find all the invalid regexes present in the content types and global fields of your stack.

USAGE
  $ csdx cm:stacks:validate-regex [-a <value>] [--contentType] [--filePath <value>] [--globalField]

FLAGS
  -a, --alias=<value>     Alias (name) assigned to the management token
      --contentType       To find invalid regexes within the content types
      --filePath=<value>  [optional] The path or the location in your file system where the CSV output file should be
                          stored.
      --globalField       To find invalid regexes within the global fields

DESCRIPTION
  This command is used to find all the invalid regexes present in the content types and global fields of your stack.

EXAMPLES
  $ csdx cm:stacks:validate-regex

  $ csdx cm:stacks:validate-regex -a <management_token_alias>

  $ csdx cm:stacks:validate-regex --contentType

  $ csdx cm:stacks:validate-regex --globalField

  $ csdx cm:stacks:validate-regex --filePath <path/to/the/directory>

  $ csdx cm:stacks:validate-regex -a <management_token_alias> --contentType --globalField

  $ csdx cm:stacks:validate-regex -a <management_token_alias> --contentType --globalField --filePath <path/to/the/directory>

See code: src/commands/cm/stacks/validate-regex.ts

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.