10

I created a CLI tool using dotnet core framwork and I want to run it form the console as:

$ candyapp --arg1 some-value

I run it now by going to the location where the dll file is by uing:

$ dotnet candyapp.dll candyapp --arg1

Can anyone help me install my application and use it on my mac?

Mustafa Dwaikat
  • 3,392
  • 9
  • 27
  • 41

1 Answers1

6

Use the run command line args of the dotnet app.

dotnet run [-c|--configuration] [-f|--framework] [--force] [--launch-profile] [--no-build] [--no-dependencies] [--no-launch-profile] [--no-restore] [-p|--project] [--runtime] [[--] [application arguments]]

For more info, please see dotnet cli

Ess
  • 99
  • 1
  • 4