{"id":23719914,"url":"https://github.com/jxnkwlp/abp-cli-gen-tool","last_synced_at":"2025-09-03T21:30:36.472Z","repository":{"id":65420859,"uuid":"417138400","full_name":"jxnkwlp/Abp-Cli-Gen-Tool","owner":"jxnkwlp","description":"一个简单的abp项目命令行辅助生成代码工具","archived":false,"fork":false,"pushed_at":"2024-01-28T11:39:36.000Z","size":139,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-27T04:01:58.116Z","etag":null,"topics":["abp-vnext","generated-code","swagger","typescript"],"latest_commit_sha":null,"homepage":"","language":"C#","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/jxnkwlp.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-14T13:19:43.000Z","updated_at":"2024-06-04T08:27:41.702Z","dependencies_parsed_at":"2024-06-04T08:27:40.359Z","dependency_job_id":"52ab1e4e-16d6-4ce6-9414-ba88fb91b595","html_url":"https://github.com/jxnkwlp/Abp-Cli-Gen-Tool","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":0.4242424242424242,"last_synced_commit":"ad0c43c649c6d8694eb500cbf6ae92a47bbf9e16"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxnkwlp%2FAbp-Cli-Gen-Tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxnkwlp%2FAbp-Cli-Gen-Tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxnkwlp%2FAbp-Cli-Gen-Tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxnkwlp%2FAbp-Cli-Gen-Tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jxnkwlp","download_url":"https://codeload.github.com/jxnkwlp/Abp-Cli-Gen-Tool/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231918541,"owners_count":18445746,"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":["abp-vnext","generated-code","swagger","typescript"],"created_at":"2024-12-30T21:55:48.211Z","updated_at":"2024-12-30T21:55:48.782Z","avatar_url":"https://github.com/jxnkwlp.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DotNet Cli 工具\n\n一个命令行的 Abp 代码辅助生成工具。\n\n[![NuGet](https://img.shields.io/nuget/v/Passingwind.AbpProjectTools?style=flat-square)](https://www.nuget.org/packages/Passingwind.AbpProjectTools)\n\n### 一键生成 Entity 的\n\n- repository\n- domain manager\n- app service\n- http controller (从 app service 生成)\n- typescript types (基于 openapi json)\n- typescript service (基于 openapi json)\n\n#### 其他\n\n- antd pro CRUD 页面\n\n## 如何使用\n\n1. 安装 `dotnet tool install --global Passingwind.AbpProjectTools`\n2. 在项目根目录，打开命令行工具，输入 `abptool gen ` 开始\n   \u003e 举例：生成实体 `Product` 的 `Repository` : `abptool gen backend repository --project-name Demo --name Product`\n\n## 更多命令和参数使用 `--help` 查看\n\n### 后端相关命令\n\n```shell\n\u003e abptool gen backend --help\n\nbackend\n  Generate abp repository, CRUD app service, http controller code\n\nUsage:\n  AbpProjectTools [options] generate backend [command]\n\nOptions:\n  --slu-dir \u003cslu-dir\u003e (REQUIRED)            The solution root dir. Default is current directory\n  --name \u003cname\u003e (REQUIRED)                  The Domain entity name\n  --project-name \u003cproject-name\u003e (REQUIRED)  The project name. Default is solution name if found in solution directory\n  --overwrite                               Over write file if the target file exists [default: False]\n  --templates \u003ctemplates\u003e                   The template files directory\n  -?, -h, --help                            Show help and usage information\n\nCommands:\n  domain-service                           生成一个DomainService文件\n  repository                               生成对应的 IRepository 和 EfRepository 文件\n  app-service                              生成对应的 AppService 文件\n  http-controller                          生成 HttpAPI Controller 文件，基于 AppService\n```\n\n### 前端相关命令\n\n```shell\n\u003e abptool gen fontend --help\nfontend\n\nUsage:\n  AbpProjectTools [options] generate fontend [command]\n\nOptions:\n  -?, -h, --help  Show help and usage information\n\nCommands:\n  ts                                        生成后端 api 对应的 typescript 的相关文件（types和service），基于 openapi 。\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjxnkwlp%2Fabp-cli-gen-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjxnkwlp%2Fabp-cli-gen-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjxnkwlp%2Fabp-cli-gen-tool/lists"}