| name | package-script-writer |
| description | Generate Umbraco CMS installation scripts using the Package Script Writer CLI |
| user_invocable | true |
Package Script Writer (psw)
Generate and run Umbraco CMS installation scripts using the psw CLI tool.
Workflow
-
Check if PSW CLI is installed:
psw --version
If command not found, the .NET tools path may not be in PATH. Try:
- Linux/Mac:
export PATH="$PATH:$HOME/.dotnet/tools" && psw --version
- Windows:
%USERPROFILE%\.dotnet\tools\psw --version
-
If not installed, install it:
dotnet tool install --global PackageScriptWriter.Cli
-
Then run the psw command (see below)
Non-Interactive Usage (Claude Code)
This is the command to use:
export PATH="$PATH:$HOME/.dotnet/tools"
psw -d -n ProjectName -s ProjectName -u --database-type SQLite --admin-email admin@test.com --admin-password SecurePass1234 --auto-run
Run this with run_in_background: true since Umbraco is a long-running web server.
Critical flags: