CLI Commands
Here are some important CLI Commands that are to be used along with fullstackhero.
Contents On this page
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 Host 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 , Oracle
While adding migrations for a particular provider, ensure that you have configured a valid connection string to the provider’s database at both src/Host/Configurations/database.json
and src/Host/Configurations/hangfire.json
.
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
Like fullstackhero? ❤️
Here is what you can do to show your support!
Buy me a Coffee ☕ Sponsor 😍