Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building CLI Applications with C# and .NET
  • Table Of Contents Toc
Building CLI Applications with C# and .NET

Building CLI Applications with C# and .NET

By : Tidjani Belmansour
5 (1)
close
close
Building CLI Applications with C# and .NET

Building CLI Applications with C# and .NET

5 (1)
By: Tidjani Belmansour

Overview of this book

Developers and system administrators often face challenges like inefficient workflows, complex system operations, and the growing demand for robust automation tools. CLI applications provide a powerful solution by enhancing flexibility, efficiency, and productivity in various environments. This book will guide you through mastering the development of robust command-line tools using .NET. Written by a Microsoft Azure MVP, the book’s hands-on approach ensures practical experience with real-world projects. You’ll start with an overview of foundational principles, essential concepts, and best practices for CLI application development. From there, you’ll advance to creating interactive interfaces, integrating with external APIs and services, and implementing security measures to safeguard your applications. Each chapter will build progressively from basic to advanced topics. Beyond development, you’ll learn how to enhance application quality through testing, package for efficient distribution, and deploy effectively. The book also teaches strategies to optimize performance to ensure your applications run efficiently under heavy usage. By the end of this book, you’ll have gained a deep understanding of CLI application development with .NET to build modular, extensible, and easy-to-maintain applications.
Table of Contents (23 chapters)
close
close
Lock Free Chapter
1
Part 1: Getting Started with CLI Applications
5
Part 2: Foundations of Building CLI Applications
9
Part 3: Advanced Topics in CLI Application Development
13
Part 4: Testing and Deployment
16
Part 5: Advanced Techniques and Best Practices

Running the program

To run the program, we simply need to execute this command:

dotnet run sync

The result will be as follows:

Figure 9.1 – The sync command in action

Figure 9.1 – The sync command in action

Great, isn’t it?

If we list all available local bookmarks, we will notice that they have indeed been synchronized with the remote list of bookmarks.

What about security?

You may certainly have noticed that the web service can be used without any authentication. In other words, anonymous requests are allowed, which may be a security concern.

You are totally right, and this is intentional for now as security will be addressed in Chapter 13 where we will see how we can authenticate users using a technique called “Personal Access Tokens,” which resembles using API keys.

The code works great but there is actually a drawback to it.

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Building CLI Applications with C# and .NET
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon