CLI Commands

Last Updated On December 01, 2021 😎

Here are some important CLI Commands that are to be used along with fullstackhero.

Docker

Build

This command is to be executed from the root folder of the project.

docker build -t iammukeshm/dotnet-webapi:0.0.3-rc -t iammukeshm/dotnet-webapi:latest  .

Push to DockerHub

This command is to be executed from the root folder of the project.

docker push iammukeshm/dotnet-webapi

Migrations

This command is to be executed from the Bootstrapper Directory of the project.

dotnet ef migrations add <CommitMessage> --project .././Migrators/Migrators.<Provider>/ --context ApplicationDbContext -o Migrations/Application

CommitMessage : Enter a commit message here. Provider : Enter the available DB Provider name. MSSQL , MySQL , PostgreSQL

NuGet

Generates a NuGet Package of the entire solution. NuGet Configuration is available in the *.nuspec file at the root of the project directory. This command is to be executed from the Root Directory of the project.

nuget pack -NoDefaultExcludes

Want to add in More Details or Update this Document ?

Edit this Document on GitHub

Like fullstackhero?

Support the project for the longer run!

Buy me a Coffee Sponsor