{"id":44793833,"url":"https://github.com/contentstack/cli-cm-regex-validate","last_synced_at":"2026-04-15T14:08:32.708Z","repository":{"id":40269205,"uuid":"403614142","full_name":"contentstack/cli-cm-regex-validate","owner":"contentstack","description":"A Contentstack CLI plugin that searches for invalid regexes within the content types and global fields of the stack","archived":false,"fork":false,"pushed_at":"2026-04-08T06:35:29.000Z","size":1927,"stargazers_count":1,"open_issues_count":8,"forks_count":2,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-04-08T08:26:59.292Z","etag":null,"topics":["cli","contentstack-cli","contentstack-cli-plugin","redos","regex"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/contentstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-06T12:27:08.000Z","updated_at":"2026-03-09T14:40:38.000Z","dependencies_parsed_at":"2026-01-02T22:00:12.620Z","dependency_job_id":null,"html_url":"https://github.com/contentstack/cli-cm-regex-validate","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/contentstack/cli-cm-regex-validate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentstack%2Fcli-cm-regex-validate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentstack%2Fcli-cm-regex-validate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentstack%2Fcli-cm-regex-validate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentstack%2Fcli-cm-regex-validate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/contentstack","download_url":"https://codeload.github.com/contentstack/cli-cm-regex-validate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentstack%2Fcli-cm-regex-validate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31844450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T13:28:40.153Z","status":"ssl_error","status_checked_at":"2026-04-15T13:28:29.396Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","contentstack-cli","contentstack-cli-plugin","redos","regex"],"created_at":"2026-02-16T12:04:54.825Z","updated_at":"2026-04-15T14:08:32.702Z","avatar_url":"https://github.com/contentstack.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Regex Validation CLI Plugin\n\nThe “Regex Validation” plugin in Contentstack CLI allows users to search for invalid regexes within the content types and global fields of their stack.\n\nUsing the CLI “Regex Validation” plugin, you can find the invalid regexes within your stack\nand rectify them.\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/cli-cm-regex-validate.svg)](https://npmjs.org/package/cli-cm-regex-validate)\n[![Downloads/week](https://img.shields.io/npm/dw/cli-cm-regex-validate.svg)](https://npmjs.org/package/cli-cm-regex-validate)\n[![License](https://img.shields.io/npm/l/cli-cm-regex-validate.svg)](https://github.com/contentstack/cli-cm-regex-validate/blob/master/package.json)\n\n\u003c!-- toc --\u003e\n\n- [Regex Validation CLI Plugin](#regex-validation-cli-plugin)\n- [Usage](#usage)\n- [Commands](#commands)\n\u003c!-- tocstop --\u003e\n\n# Usage\n\n\u003c!-- usage-no-overwrite --\u003e\n\n#### Step 1:\n\n```sh-session\n$ npm install -g @contentstack/cli\n\n$ csdx plugins:install https://github.com/contentstack/cli-cm-regex-validate/releases/download/v1.2.1/contentstack-cli-cm-regex-validate-1.2.1.tgz\n\n$ csdx plugins\nrunning command...\n@contentstack/cli-cm-regex-validate/1.2.1 darwin-arm64 node-v20.8.0\n\n$ csdx --help [COMMAND]\nUSAGE\n  $ csdx COMMAND\n...\n```\n\n#### Step 2:\n\n[Set the region](https://www.contentstack.com/docs/developers/cli/configure-regions-in-the-cli#set-region)\n\n\u003c!-- usagestop-overwrite --\u003e\n\n#### Step 3:\n\n[Configured management token alias](https://www.contentstack.com/docs/developers/cli/cli-authentication#add-management-token)\n\n# Commands\n\n\u003c!-- commands --\u003e\n\n- [`csdx cm:stacks:validate-regex`](#csdx-cmstacksvalidate-regex)\n\n## `csdx cm:stacks:validate-regex`\n\nThis command is used to find all the invalid regexes present in the content types and global fields of your stack.\n\n```\nUSAGE\n  $ csdx cm:stacks:validate-regex [-h] [-a \u003cvalue\u003e] [-c] [-g] [-f \u003cvalue\u003e]\n\nFLAGS\n  -a, --alias=\u003cvalue\u003e     Alias (name) assigned to the management token\n  -c, --contentType       To find invalid regexes within the content types\n  -f, --filePath=\u003cvalue\u003e  [optional] The path or the location in your file system where the CSV output file should be\n                          stored.\n  -g, --globalField       To find invalid regexes within the global fields\n  -h, --help              To show the flags that can be used with this CLI command\n\nDESCRIPTION\n  This command is used to find all the invalid regexes present in the content types and global fields of your stack.\n\nEXAMPLES\n  $ csdx cm:stacks:validate-regex\n\n  $ csdx cm:stacks:validate-regex -a \u003cmanagement_token_alias\u003e\n\n  $ csdx cm:stacks:validate-regex -c\n\n  $ csdx cm:stacks:validate-regex -g\n\n  $ csdx cm:stacks:validate-regex -f \u003cpath/to/the/directory\u003e\n\n  $ csdx cm:stacks:validate-regex -a \u003cmanagement_token_alias\u003e -c -g\n\n  $ csdx cm:stacks:validate-regex -a \u003cmanagement_token_alias\u003e -c -g -f \u003cpath/to/the/directory\u003e\n```\n\n_See code: [src/commands/cm/stacks/validate-regex.ts](https://github.com/contentstack/cli-cm-regex-validate/blob/v1.2.1/src/commands/cm/stacks/validate-regex.ts)_\n\n\u003c!-- commandsstop --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontentstack%2Fcli-cm-regex-validate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontentstack%2Fcli-cm-regex-validate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontentstack%2Fcli-cm-regex-validate/lists"}