Open Closed

abp-generate-proxy-command-create-sub-directory #7401


User avatar
0
aksogut created
  • ABP Framework version: v8.1.4
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I've encountered an issue while using the abp generate-proxy command that I believe needs your attention. Currently, when running the command:

abp generate-proxy -t ng -m productService -u https://localhost:44361 --target ProductService

The CLI creates a product-service subdirectory within the target folder, resulting in a structure like this: projects/product-service/src/lib/proxy/product-service/

However, this additional product-service subdirectory is unnecessary and inconsistent with the structure created by ABP Suite. Ideally, the proxies should be generated directly under the proxy folder, like this:

projects/product-service/src/lib/proxy/

This discrepancy causes inconvenience when switching between ABP CLI and ABP Suite, as it requires manual restructuring of the generated files. Could you please consider modifying the generate-proxy command to avoid creating this extra subdirectory? This change would align the CLI's behavior with ABP Suite and provide a more consistent development experience. Thank you for your attention to this matter. Your continuous efforts in improving the ABP framework are greatly appreciated.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    You can use the --entry-point option

    https://docs.abp.io/en/abp/latest/CLI#options-6

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.