{"id":23441833,"url":"https://github.com/ngxs/cli","last_synced_at":"2025-04-13T10:43:48.458Z","repository":{"id":53092900,"uuid":"149978465","full_name":"ngxs/cli","owner":"ngxs","description":"⚡ CLI for @ngxs/store ","archived":false,"fork":false,"pushed_at":"2023-11-21T08:49:28.000Z","size":1588,"stargazers_count":44,"open_issues_count":1,"forks_count":8,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-04-24T11:10:17.853Z","etag":null,"topics":["angular","cli","ngxs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngxs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-09-23T11:34:17.000Z","updated_at":"2024-02-03T16:19:28.000Z","dependencies_parsed_at":"2024-01-23T21:34:58.829Z","dependency_job_id":null,"html_url":"https://github.com/ngxs/cli","commit_stats":{"total_commits":12,"total_committers":6,"mean_commits":2.0,"dds":"0.41666666666666663","last_synced_commit":"b6455ca7a789322c682edcd32765e666a1d6571f"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngxs%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngxs%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngxs%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngxs%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngxs","download_url":"https://codeload.github.com/ngxs/cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248702022,"owners_count":21148113,"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":["angular","cli","ngxs"],"created_at":"2024-12-23T17:18:53.712Z","updated_at":"2025-04-13T10:43:48.436Z","avatar_url":"https://github.com/ngxs.png","language":"TypeScript","readme":"# @ngxs/cli\n\n\u003ca href=\"https://badge.fury.io/js/%40ngxs%2Fcli\"\u003e\n  \u003cimg src=\"https://badge.fury.io/js/%40ngxs%2Fcli.svg\" alt=\"@ngxs/cli\"\u003e\n\u003c/a\u003e\n\n![CLI Screenshot](https://raw.githubusercontent.com/ngxs/store/master/docs/assets/cli.gif)\n\n## Install\nThe CLI can be installed using NPM:\n\n```bash\nnpm i @ngxs/cli -g\n```\n\n## Usage\n\n```bash\nngxs\n```\n\n## Options\n\n```bash\nNGXS CLI\n\n  $ ngxs --name name --spec boolean --directory path --folder-name name\n  $ ngxs --help\n  \nOptions\n\n  --name name         Store name  \n  --directory path    By default, the prompt is set to the current directory\n  --folder-name name   Use your own folder name, default: state  \n  --spec boolean      Creates a spec file for store, default: true\n\nCustom template generator\n\n  --plopfile path   Path to the plopfile\n```\n\n\n#### What is Plop?\n\n[Plop](https://www.npmjs.com/package/plop) is what I like to call a \"micro-generator framework.\" Now, I call it that because it is a small tool that gives you a simple way to generate code or any other type of flat text files in a consistent way. You see, we all create structures and patterns in our code (routes, controllers, components, helpers, etc). These patterns change and improve over time so when you need to create a NEW insert-name-of-pattern-here, it's not always easy to locate the files in your codebase that represent the current \"best practice.\" That's where plop saves you. With plop, you have your \"best practice\" method of creating any given pattern in CODE. Code that can easily be run from the terminal by typing plop. Not only does this save you from hunting around in your codebase for the right files to copy, but it also turns \"the right way\" into \"the easiest way\" to make new files.\n\n## Development\n\nRun tests\n\n```bash\nnpm test\n```\n\nLocal execute CLI\n\n```\nnpm start\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngxs%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngxs%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngxs%2Fcli/lists"}