ttmind

Main Navigation

ttmind
  • jim-jams
  • Tech
  • Positive
Login

Login

Facebook Google

OR

Remember me Forgot password?

Don't have account? Signup here.

Sort by Categorys

.Net

PHP

Java

JavaScript

Database

Server

Client Side

Tools

Artificial Intelligence

Cloud

Hybrid Development

Event

Smart City

Education

Security

Scrum

Digital Marketing

APP Development

Business

Internet

Simulation

Art

Network

Microservices

Architecture

Technology

Leadership

    Top Articles

  • How Does Social Media Bring People Together?
    TTMind Author
  • How to read appSettings JSON from Class Library in ASP.NET Core
    Anil Shrestha
  • Printing Support In Asp.Net Core
    TTMind Author
  • HOW TO EXTRACT TEXT FROM IMAGE USING JAVASCRIPT (OCR with Tesseract.js)?
    Prakash Pokhrel
  • Images Upload REST API using ASP.NET Core
    Prakash Pokhrel
  • Related Topic

  • How to read appSettings JSON from Class Library in ASP.NET Core
  • Printing Support In Asp.Net Core
  • Images Upload REST API using ASP.NET Core
  • How to use IActionFilter, IAsyncActionFilter in ASP.NET Core MVC?
  • ASP.NET CORE - Blazor CRUD operation using ADO.NET
  • Tech
  • About Us
  • Contact Us
  • TechHelp
  • PositiveHelp
  • Jim-Jams Help
  • Terms & Conditions

© Copyright ttmind.com

Main Content

Command Line Interface (CLI) Tools In .NET Core

.Net .Net Core about 8 years ago || 5/29/2018 || 770 View

  • Hide

Command-line interface (CLI) is a new cross-platform toolchain in .NET Core for developing applications. The CLI is a foundation upon which higher-level tools, such as Integrated Development Environments (IDEs), editors, and build orchestrators, can rest.

Installation

Native installation:

The native installers are principally utilized on developer's machines and utilize every supported platform’s native install mechanism, for example, DEB packages on Ubuntu or MSI on Windows. These installers introduce and configure the environment for quick use by the developer yet require authoritative privileges on the machine.

Shell scripts installation:

Shell scripts are principally utilized for setting up build servers or when you wish to install the tools without administrative privileges. Install scripts don't install essentials on the machine, which must be istalled manually.

CLI commands

These commands are installed by default:

Basic commands

  • new
  • restore
  • build
  • publish
  • run
  • test
  • vstest
  • pack
  • migrate
  • clean
  • sln

Project modification commands

  • add package
  • add reference
  • remove package
  • remove reference
  • list reference

Advanced commands

  • nuget delete
  • nuget locals
  • nuget push
  • msbuild
  • dotnet install script

Command structure

The command data consists of the the driver, the command, and possibly command arguments and options. You see this pattern in most CLI operations, such as creating a new console app and running it from the command line as the following commands show when executed from a directory named my_app:

dotnet new console

dotnet restore

dotnet build --output /build_output

dotnet /build_output/my_app.dll

 

  • 2
  • 0
  • 0
    • Facebook
    • Twitter
    • Google +
    • LinkedIn

About author

Prakash Pokhrel

Prakash Pokhrel

https://np.linkedin.com/in/prakash-pokhrel-42a699a2

Reset Your Password
Enter your email address that you used to register. We'll send you an email with your username and a link to reset your password.

Quick Survey