
Package Script Writer
If you're spinning up Umbraco CMS instances, this handles the entire installation process through a CLI tool called psw. It generates and runs installation scripts with database setup, admin credentials, and optional package installation all in one command. The key trick is the `-d` flag, which actually generates a proper installation script instead of just a basic dotnet run command. Works non-interactively with sensible defaults, supports SQLite for quick testing or SQL Server for production, and can bundle packages like uSync or Umbraco.Forms with specific versions. Most useful when you need repeatable Umbraco setups or want to automate dev environment creation without clicking through the installer.
- skills.sh installs
- 391
- GitHub stars
- 27
- last updated
- Aug 21, 2026
Install
$ npx -y skills add umbraco/umbraco-cms-backoffice-skills --skill package-script-writer --agent claude-codeInstalls into .claude/skills of the current project.
Files
Package Script Writer (psw)
Generate and run Umbraco CMS installation scripts using the psw CLI tool.
Workflow
-
Check if PSW CLI is installed:
psw --versionIf 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
- Linux/Mac:
-
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.
Sponsors
Details
- Repository
- github.com/umbraco/umbraco-cms-backoffice-skills
- Categories
- Automation & Workflows, CLI & Terminal, .NET & C#
- First seen
- Jun 3, 2026
More from umbraco/umbraco-cms-backoffice-skills
All 76- Umbraco Tree391
- Umbraco Umbraco Element388
- Umbraco Tree Item387
- Umbraco Skill Validator386
- Umbraco Tiptap Extension386
- Umbraco Theme385
- Umbraco Workspace385
- Umbraco Playwright Testhelpers384
- Umbraco Skill Test Runner384
- Umbraco State Management384
- Umbraco Example Generator383
- Umbraco Skill Code Analyzer383
- Umbraco User Profile App383
- Umbraco Mocked Backoffice382
- Umbraco Tiptap Statusbar Extension382
- Umbraco Tiptap Toolbar Extension382
- Umbraco Validation Checks382
- Umbraco Ufm Component381
- Umbraco Validation Context381
- Umbraco E2e Testing380
- Umbraco Msw Testing379
- Umbraco Unit Testing374
- Umbraco Test Builders370
- Umbraco Testing368