Introducing the New ABP CLI

User Avatar
4 months ago, 999 views, 1 comments
Cover Image

📢 We're excited to introduce the new ABP CLI after the announcement of the new unified ABP Platform.

As you know, we recently unified the ABP platform in a single domain (abp.io) and made some changes in our templating system to simplify your development. Also, we released more stable ABP Studio versions, which can dramatically improve and speed up your development time. Besides all of these changes, we have also introduced a new ABP CLI to bring you a more streamlined and efficient experience, which also extends the current commands.

Here is a brief overview of what's new, what's changed, and why this change is happening...

The New ABP CLI

ABP CLI is a command line tool to perform some common operations for ABP based solutions or ABP Studio features. With v8.2+, the old/legacy ABP CLI has been replaced with a new CLI system to align with the new templating system and ABP Studio.

The new ABP CLI extends the old ABP CLI, adds more features that are used by ABP Studio behind the scenes, and is also fully compatible with the new templating system. Also, it allows you to use the old ABP CLI if you need, it by passing a single parameter.

To be able to use the new ABP CLI, you should first delete the existing/old CLI with the following command if you installed it before:

dotnet tool uninstall -g Volo.Abp.Cli

Then, to install the new ABP CLI, you can just simply execute the following command in your terminal:

dotnet tool install -g Volo.Abp.Studio.Cli

Both old and new ABP CLI binary names use the same abp command as the executing command. Therefore, you should uninstall the old CLI first, if you installed it before.

Note: Since the new ABP CLI uses the same abp command, you can use the same commands as you did before.

Reason for the Change

ABP introduces a new templating system, which is fully compatible with the ABP Studio from v8.2+. Since, ABP Studio offers more and better features (such as tracking, monitoring, and deploying your applications from a single point), and the new templating system has a different versioning structure, we wanted to introduce a new ABP CLI by extending the current features and adding even more features that are compatible with the new templating system and ABP Studio.

This change allows you to create your application with the new templating system either by running the cross-platform ABP Studio application or ABP CLI and allows you to create automated pipelines with the power of the new ABP CLI.

Using the Old ABP CLI

If you have an older version of ABP solutions and need to use the old ABP CLI for any reason, you can do it easily with the new ABP CLI.

You just need to put the --old command at the end of your command and execute the related CLI command as you would before. This allows you to use the old CLI commands with the new CLI without the need to uninstall the new CLI.

For example, if you want to create a new ABP v8.2.0 solution, you can execute the following command:

abp new Acme.BookStore --version 8.2.0 --old

When you run this command, the new ABP CLI installs the old CLI with abp-old name as the executing command within the latest version of ABP under the %UserProfile%\.abp\studio\cli\old directory and allows you to use the old commands.

If you want to use a specific version of the old ABP CLI, it's also possible with the new ABP CLI. You can use the install-old-cli command of the new CLI to either install or update an old CLI, then you can directly execute any old ABP CLI command by simply passing the --old parameter to the end of your command:

# installing the old ABP CLI with v8.0
abp install-old-cli --version 8.0.0

abp new Acme.BookStore --version 8.0 --old # alternatively, you can use the `abp-old` command without need to pass the "--old" parameter

New Commands

New ABP CLI extends the existing features of old ABP CLI and introduces new commands. Here are some of the new commands:

  • kube-connect: Connects to Kubernetes environment. (Available for Business or higher licenses)
  • kube-intercept: Intercepts a service running in Kubernetes environment. (Available for Business or higher licenses)
  • list-module-sources: Lists the remote module sources.
  • and more...

You can check the CLI documentation for all available commands and their usage.

Conclusion

In this blog post, we briefly explained the new ABP CLI, what's the reason for this change, and how to use the old ABP CLI with the new ABP CLI.

If you have any further questions related to the new ABP CLI, you can always refer to the CLI and Old ABP CLI vs New ABP CLI documentation. Also, we listed some of the questions that you may have, which you can check from here.

Please try out the new ABP CLI, and provide feedback to help us release more stable versions, with additional features.

Thanks for being a part of the ABP Community!

1 comments

Leave Comment
User Avatar
uskill068 4 months ago

Opal Landscaping LLC stands out among landscaping companies in Dubai with our wide range of services including planning, design, landscape construction, enhancement and maintenance, irrigation system design and installation, swimming Pool construction and indoor plant maintenance. With a focus on local and global market trends and cutting-edge technologies, we excel in the diverse environment of the United Arab Emirates, ensuring top-notch service and client satisfaction. https://opallandscaping.com/

More From Engincanv

ABP.IO Platform 9.0 Has Been Released Based on .NET 9.0

Today, ABP 9.0 stable version has been released based on .NET 9.0. You can create solutions with ABP 9.0 starting from ABP Studio v0.9.11 or by usi... Continue Reading

EngincanV November 2024

ABP.IO Platform 9.0 RC Has Been Published

ABP 9.0 release candidate has been released today. Read the blog post to learn all new features in details. Continue Reading

EngincanV October 2024

ABP.IO Platform 8.3 Final Has Been Released

ABP 8.3 stable version has been released today. Read the blog post to learn all new features in details. Continue Reading

EngincanV September 2024

New ABP Documentation System: Everything You Need In One Place 📣

We have combined the ABP (open-source) and ABP Commercial (paid) documents into a single, comprehensive resource. This unification brings you a bet... Continue Reading

EngincanV August 2024

ABP.IO Platform 8.3 RC Has Been Published

Today, we are happy to release ABP version 8.3 RC (Release Candidate). This blog post introduces the new features and important changes in this new... Continue Reading

EngincanV August 2024

ABP.IO Platform 8.2 Final Has Been Released

ABP Framework and ABP Commercial 8.2 versions have been released today. Continue Reading

EngincanV June 2024

ABP.IO Platform 8.2 RC Has Been Published

Today, we are happy to release the ABP Framework and ABP Commercial version 8.2 RC (Release Candidate). This blog post introduces the new features ... Continue Reading

EngincanV May 2024

ABP.IO Platform 8.1 Final Has Been Released

ABP Framework and ABP Commercial 8.1 versions have been released today. Continue Reading

EngincanV April 2024

ABP.IO Platform 8.1 RC Has Been Published

Today, we are happy to release the ABP Framework and ABP Commercial version 8.1 RC (Release Candidate). This blog post introduces the new features ... Continue Reading

EngincanV February 2024

ABP.IO Platform 8.0 Has Been Released Based on .NET 8.0

Today, ABP Framework and ABP Commercial 8.0 versions have been released based on .NET 8.0. Continue Reading

EngincanV December 2023

ABP.IO Platform 8.0 RC Has Been Published

Today, we are happy to release the ABP Framework and ABP Commercial version 8.0 RC (Release Candidate). This blog post introduces the new features ... Continue Reading

EngincanV November 2023

ABP.IO Platform 7.4 Final Has Been Released

ABP Framework and ABP Commercial 7.4 versions have been released today. Continue Reading

EngincanV October 2023

Unleash the Power of ABP CMS Kit: A Dynamic Content Showcase

We're excited to introduce to you ABP's CMS Kit Module – a versatile module that empowers you to build your own dynamic content website with ease. ... Continue Reading

EngincanV September 2023

ABP.IO Platform 7.4 RC Has Been Published

Today, we are happy to release the ABP Framework and ABP Commercial version 7.4 RC (Release Candidate). This blog post introduces the new features ... Continue Reading

EngincanV August 2023

ABP.IO Platform 7.3 Final Has Been Released

ABP Framework and ABP Commercial 7.3 versions have been released today. Continue Reading

EngincanV July 2023

ABP.IO Platform 7.3 RC Has Been Published

Today, we are happy to release the ABP Framework and ABP Commercial version 7.3 RC (Release Candidate). This blog post introduces the new features ... Continue Reading

EngincanV June 2023

ABP.IO Platform 7.2 Final Has Been Released

ABP Framework and ABP Commercial 7.2 versions have been released today. Continue Reading

EngincanV May 2023

ABP.IO Platform 7.2 RC Has Been Published

Today, we are happy to release the ABP Framework and ABP Commercial version 7.2 RC (Release Candidate). This blog post introduces the new features ... Continue Reading

EngincanV April 2023

ABP.IO Platform 7.1 RC Has Been Published

Today, we are happy to release the ABP Framework and ABP Commercial version 7.1 RC (Release Candidate). This blog post introduces the new features ... Continue Reading

EngincanV February 2023

ABP.IO Platform 7.0 Final Has Been Released

ABP Framework and ABP Commercial 7.0 versions have been released today. Continue Reading

EngincanV January 2023

ABP.IO Platform 7.0 RC Has Been Published

Today, we are happy to release the ABP Framework and ABP Commercial version 7.0 RC (Release Candidate). This blog post introduces the new features ... Continue Reading

EngincanV November 2022

ABP.IO Platform 6.0 Final Has Been Released

ABP Framework and ABP Commercial 6.0 versions have been released today. Continue Reading

EngincanV October 2022

ABP.IO Platform 6.0 RC Has Been Published

Today, we are happy to release the ABP Framework and ABP Commercial version 6.0 RC (Release Candidate). This blog post introduces the new features ... Continue Reading

EngincanV July 2022

ABP.IO Platform 5.3 Final Has Been Released

ABP Framework and ABP Commercial 5.3 versions have been released today. Continue Reading

EngincanV June 2022

ABP.IO Platform 5.3 RC Has Been Published

Today, we are happy to release the ABP Framework and ABP Commercial version 5.3 RC (Release Candidate). This blog post introduces the new features ... Continue Reading

EngincanV May 2022