{"id":23413176,"url":"https://github.com/s-r-x/reactcmd","last_synced_at":"2025-07-14T07:32:47.930Z","repository":{"id":46285437,"uuid":"412407056","full_name":"s-r-x/reactcmd","owner":"s-r-x","description":"⚛️ Missing react cli","archived":false,"fork":false,"pushed_at":"2021-11-02T07:19:13.000Z","size":1884,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-12T09:50:12.919Z","etag":null,"topics":["cli","react","react-cli"],"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/s-r-x.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-01T09:34:10.000Z","updated_at":"2021-12-11T05:49:57.000Z","dependencies_parsed_at":"2022-08-29T10:32:05.113Z","dependency_job_id":null,"html_url":"https://github.com/s-r-x/reactcmd","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/s-r-x/reactcmd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-r-x%2Freactcmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-r-x%2Freactcmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-r-x%2Freactcmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-r-x%2Freactcmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s-r-x","download_url":"https://codeload.github.com/s-r-x/reactcmd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-r-x%2Freactcmd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265255274,"owners_count":23735222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","react","react-cli"],"created_at":"2024-12-22T19:25:54.288Z","updated_at":"2025-07-14T07:32:47.890Z","avatar_url":"https://github.com/s-r-x.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reactcmd\n\nMissing react cli.\n\n## Install\n\n```sh\nnpm i -g @strax77/reactcmd\n```\n\n## Commands\n\n### generate component\n```\nreactcmd g c \u003cname\u003e [dir]\n\nGenerate new component\n\nPositionals:\n  name  Name of the component                                [string] [required]\n  dir   Directory of the component                                      [string]\n\nOptions:\n      --version                 Show version number                    [boolean]\n  -s, --style                   Styling. Detected automatically\n        [string] [choices: \"sc\", \"emotion\", \"aphrodite\", \"radium\", \"styled-jsx\",\n                                     \"linaria\", \"less\", \"css\", \"stylus\", \"sass\"]\n      --cssmodules, --cssm      Use CSS modules?                       [boolean]\n      --classname, --cn         CSS class                               [string]\n      --ugly                    Disable styling?                       [boolean]\n  -t, --tag                     JSX tag                [string] [default: \"div\"]\n      --pure                    Memoize the component?                 [boolean]\n      --sb                      Create stories?                        [boolean]\n      --test                    Create tests?                          [boolean]\n      --cc                      Class component?                       [boolean]\n      --fc                      Functional component?                  [boolean]\n      --componentfile, --cfile  Name of the component file\n                                                     [string] [default: \"index\"]\n      --stylefile, --sfile      Name of the style file\n                                                    [string] [default: \"styles\"]\n      --testfile, --tfile       Name of the test file [string] [default: \"test\"]\n      --storiesfile, --sbfile   Name of the stories file\n                                                   [string] [default: \"stories\"]\n      --mobx                    Wrap in mobx observer?                 [boolean]\n      --redux                   Wrap in redux connect?                 [boolean]\n      --testlib                 Testing library. Detected automatically\n                                             [string] [choices: \"rtl\", \"enzyme\"]\n      --testrunner              Test runner. Detected automatically\n                                                      [string] [choices: \"jest\"]\n  -l, --lang                    Language. Detected automatically\n                                                  [string] [choices: \"js\", \"ts\"]\n      --dry                     Do not write generated files to disk   [boolean]\n  -y                            Auto confirm all prompts               [boolean]\n  -q, --quite                   Suppress output                        [boolean]\n  -h, --help                    Show help                              [boolean]\n\n```\n\n### generate next page\n```\nreactcmd g next p \u003cpath\u003e [dir]\n\nGenerate new next.js page\n\nPositionals:\n  path  Path to the page relative to next.js pages folder. Examples:\n        article/[slug], index                                [string] [required]\n  dir   Next.js pages folder                         [string] [default: \"pages\"]\n\nOptions:\n      --version  Show version number                                   [boolean]\n      --gsp      getStaticProps?                                       [boolean]\n      --gsps     getStaticPaths?                                       [boolean]\n      --gssp     getServerSideProps?                                   [boolean]\n  -l, --lang     Language. Detected automatically [string] [choices: \"js\", \"ts\"]\n  -t, --tag      JSX tag                               [string] [default: \"div\"]\n      --pure     Memoize the component?                                [boolean]\n      --cc       Class component?                                      [boolean]\n      --fc       Functional component?                                 [boolean]\n      --mobx     Wrap in mobx observer?                                [boolean]\n      --redux    Wrap in redux connect?                                [boolean]\n      --dry      Do not write generated files to disk                  [boolean]\n  -y             Auto confirm all prompts                              [boolean]\n  -q, --quite    Suppress output                                       [boolean]\n  -h, --help     Show help                                             [boolean]\n\n```\n\n## Config\nreactcmd uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) to search for the configuration file. Supported formats:\n- `.reactcmdrc` or `.reactcmdrc.json` file in the project root folder\n- `reactcmd` key in package.json\n\n#### Example config:\n\n```json\n{\n  \"srcDir\": \"./src\",\n  \"lang\": \"ts\",\n  \"commands\": {\n    \"generateComponent\": {\n      \"style\": \"less\",\n      \"pure\": true,\n    }\n  }\n}\n```\n\n#### Setup config using short Q\u0026A:\n```sh\nreactcmd setup config\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-r-x%2Freactcmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs-r-x%2Freactcmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-r-x%2Freactcmd/lists"}