Skip to content

Latest commit

 

History

History
87 lines (59 loc) · 1.63 KB

TopTenCommandLineCommands.md

File metadata and controls

87 lines (59 loc) · 1.63 KB

My Most Used Command Line Commands

  1. Find out which process runs on a given port

    netstat -ano | findstr :<port-number>
  2. Kill a process running on a given port

    taskkill /F /PID <process-id>
  3. Install or update the latest ABP CLI

    dotnet tool install -g Volo.Abp.Cli || dotnet tool update -g Volo.Abp.Cli
  4. Update EF tool

    dotnet ef --version
    dotnet tool update --global dotnet-ef
  5. Add EF migrations to a project

    dotnet ef migrations add <MigrationName>
  6. Remove EF migrations to a project

    dotnet ef migrations remove
  7. Apply EF migrations to the database

    dotnet ef database update
  8. Remove EF migrations already applied to the database

    dotnet ef database update <MigrationName-to-which-you-want-to-revert>
    dotnet ef migrations remove
  9. Create a new .NET Solution

    dotnet new sln --name mysolution
  10. Add a project to your solution

    dotnet sln add [yourProjectName]\[yourProjectName].csproj
  11. Add a reference to a project from another project

    dotnet add reference ../../src/Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme/Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme.csproj
  12. Add a Nuget package to your project

    dotnet add package [PackageName]
  13. Create a new Blazor Webassembly app

    dotnet new blazorwasm -o [yourAppName]
  14. Update Node.js to the latest version

    n latest