I’m proud to announce that the Package Script Writer CLI tool has now reached its full, generally available release, version 1.0.1. (Normal pattern of releasing a patch version shortly after a major continues 😀)
What is the Package Script Writer CLI Tool?
In essence, it’s a quick and easy way to generate scripts for installing Umbraco and its packages directly from your terminal. While there’s a website that I built which offers these scripts, the CLI tool brings that functionality straight into the command line.
Getting Started
To install the Package Script Writer CLI tool, make sure you’re running .NET 10. If you’re not, you can download it from the Microsoft website Once you have .NET 10 installed, simply run the command:
dotnet tool install --global packagescriptwriter.cli
Installation
After that, open your terminal, type psw, and press Enter. This will launch the interactive CLI.
Interactive CLI Menu
Basic Usage Example
Once you’re in the interactive menu, the default script option is pre-selected. Simply press Enter, and you’ll instantly see the default script, much like what you’d find on the PSW website. From there, you can choose to run it, edit it, save it as a template, copy it to clipboard, or go back to the main menu.
Default script with options for what to do next
Saving and Using Templates
After you’ve generated a script you like, you can choose the “Save as Template” option. This allows you to keep your favourite scripts for future use. The next time you run the tool, you can simply load your saved templates and then run or edit them as needed.
Umbraco Versions
There is an option to view the Umbraco Versions release table so you can quickly see the end of life and release dates for all Umbraco versions including upcoming versions.
Umbraco Versions Table
Further Examples
For more advanced features and in-depth examples, please refer to the official documentation. This will provide detailed guides and additional tips to help you get the most out of the tool.
Please try it out
I’d love for you to try out the Package Script Writer CLI tool and share your feedback! If you encounter any issues or have suggestions, please raise them in the GitHub repository. Your input is invaluable in helping me improve and refine the tool.
I also encourage you to contribute to the community templates. By sharing your favourite package combinations, you can help others streamline their installations and discover new, convenient setups. It would be fantastic to see top package combinations and custom scripts shared within the community, making everyone’s experience even better.