{"id":28450411,"url":"https://github.com/netcorepal/netcorepal-cloud-cli","last_synced_at":"2026-02-14T21:02:11.087Z","repository":{"id":279760204,"uuid":"938596194","full_name":"netcorepal/netcorepal-cloud-cli","owner":"netcorepal","description":"DDD 战术框架脚手架命令行工具","archived":false,"fork":false,"pushed_at":"2025-05-21T03:29:00.000Z","size":32,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-30T16:48:49.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/netcorepal.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-25T07:49:25.000Z","updated_at":"2025-05-20T13:12:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"488a1faa-ffce-4a3b-bd79-c9c953c35840","html_url":"https://github.com/netcorepal/netcorepal-cloud-cli","commit_stats":null,"previous_names":["netcorepal/netcorepal-cloud-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/netcorepal/netcorepal-cloud-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netcorepal%2Fnetcorepal-cloud-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netcorepal%2Fnetcorepal-cloud-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netcorepal%2Fnetcorepal-cloud-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netcorepal%2Fnetcorepal-cloud-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netcorepal","download_url":"https://codeload.github.com/netcorepal/netcorepal-cloud-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netcorepal%2Fnetcorepal-cloud-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29455601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-06-06T15:07:27.014Z","updated_at":"2026-02-14T21:02:11.082Z","avatar_url":"https://github.com/netcorepal.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DDD 战术框架脚手架命令行工具\n\n[![Release Build](https://img.shields.io/github/actions/workflow/status/netcorepal/netcorepal-cloud-cli/release.yml?label=release%20build)](https://github.com/netcorepal/netcorepal-cloud-cli/.github/workflows/release.yml)\n[![Preview Build](https://img.shields.io/github/actions/workflow/status/netcorepal/netcorepal-cloud-cli/preview.yml?label=preview%20build)](https://github.com/netcorepal/netcorepal-cloud-cli/.github/workflows/preview.yml)\n[![NuGet](https://img.shields.io/nuget/v/NetCorePal.Cloud.CLI.Toolkit.svg)](https://www.nuget.org/packages/NetCorePal.Cloud.CLI.Toolkit)\n[![MyGet Preview](https://img.shields.io/myget/netcorepal/vpre/NetCorePal.Cloud.CLI.Toolkit?label=preview)](https://www.myget.org/feed/netcorepal/package/nuget/NetCorePal.Cloud.CLI.Toolkit)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/netcorepal/netcorepal-cloud-cli/blob/main/LICENSE)\n\n用于快速生成基于 [netcorepal-cloud-framework](https://github.com/netcorepal/netcorepal-cloud-framework) 项目的模板代码\n\n## 📦 安装\n\n### 从源码构建\n```bash\n# 在项目目录执行\ndotnet build\ndotnet pack -c Release -o ./nupkg\ndotnet tool install --global --add-source ./nupkg NetCorePal.Cloud.CLI.Toolkit\n```\n\n### NuGet 安装\n```bash\ndotnet tool install --global NetCorePal.Cloud.CLI.Toolkit\n```\n\n## 🛠 使用指南\n可以使用 --help 或 -h 查看帮助\n```bash\nncp --help\n```\n\n### 命令结构\n```bash\nncp new [command] -n \u003cNAME\u003e\n```\n\n| 命令   | 生成内容                          | 输出文件示例               |\n|--------|---------------------------------|--------------------------|\n| ar     | 聚合根类型                       | `{Name}.cs`             |\n| cmd    | 命令+验证器+处理器三件套           | `{Name}Command.*.cs`     |\n| repo   | 仓储接口与实现                    | `I{Name}Repository.cs` |\n| de     | 领域事件                         | `{Name}DomainEvent.cs`   |\n| deh    | 领域事件处理器                    | `{Name}.cs`  |\n\n### 通用选项\n| 参数               | 说明                     |\n|--------------------|------------------------|\n| `-n`, `--name`     | 实体名称（必填） |\n| `-d`, `--output-directory`   | 输出目录（默认：当前目录）      |\n\n### 使用示例\n\n**生成命令模板**\n```bash\nncp new cmd -n CreateProduct\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetcorepal%2Fnetcorepal-cloud-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetcorepal%2Fnetcorepal-cloud-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetcorepal%2Fnetcorepal-cloud-cli/lists"}