I'm pleased to announce that I have released a new Package for Umbraco.
It's a CLI tool version of Package Script Writer.
https://www.nuget.org/packages/PackageScriptWriter.Cli/
This is how you install it:
dotnet tool install --global PackageScriptWriter.Cli --prerelease
When you have installed it, just type psw in the command line to kick off the interactive CLI, or try psw -h to see the help list
You can search for packages, add non umbraco marketplace packages, choose from a list of popular packages. Choose package and dotnet template versions and more.
When you have generated a script, you can run it, edit it, copy it and even save it as a template to use later.
It keeps a history of the scripts you've run as well.
On top of all that you can call it with a single command without needing the interactive cli, so it is useful for CI/CD etc.
Give it a try and let me know how you get on.