Dotnet CLI Commands
This reference documents every command and flag available in Frontier - Dotnet
command-line interface. The dotnet CLI helps with scaffolfing project, endpoints and other features right from the terminal.
Help Menu
Run the CLI option below for a list of commands and options
Usage
frontier dotnet <command> --help
Option | Description |
---|---|
--help | Displays the help menu. |
CLI Command
frontier dotnet
includes the following sub-commands:
Command | Description |
---|---|
add | Add a feature to a project |
create-project | Scaffold a new project |
migrate | manage migrations for a database |
create-project
create-project will scaffold a new project for you, using one of the presets selected from its interactive shell.
Usage
frontier dotnet create-project <project-name>
Option | Description |
---|---|
--dotnetVersion | The version of the docker dotnet sdk to use when creating the project. |
--withSentry | Include Sentry logging in the project. |
--help | Show debug logs when creating the project. |
add
Adds a feature to the project.
Usage
frontier dotnet add <command>
Command | Description |
---|---|
entity | database model |
configuration | database configuration |
query | application query class, handler & validator |
command | application command class, handler & validator |
endpoint | API project endpoint folder & sample route |
migrate
Manage migrations for a database.
You can learn more about the migration commands on the migrations reference.
Usage
frontier dotnet migrate <command>.
Table of Contents