BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec
Open Closed

abp generate-proxy -t ng Delete all prev models and services #4213


User avatar
0
peyman@debtrak.com created
  • ABP Framework version: v5.0.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes We update backend and front project , after update when I run abp generate-proxy -t ng command , all generated proxies and models and services get deleted. I Checked /api/abp/api-definition and I have all services and Dtos there.

1 Answer(s)
  • User Avatar
    0
    mahmut.gundogdu created

    The ABP CLI and app versions must be identical. I have tested the rel-5 app with the latest stable version of the ABP CLI. Although we usually advise using the most recent version of ABP, you might use this command to generate a proxy..

     yarn ng g @abp/ng.schematics:proxy-add
    
    // or add package.json as script and run with npm
    //    "generate-proxy":"ng g @abp/ng.schematics:proxy-add"
    npm run generate-proxy
    //or 
    npx ng g @abp/ng.schematics:proxy-add
    

    The command will execute the local version of the schematics. It will create proxies successfully.

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.1.0-preview. Updated on November 20, 2025, 09:12
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.