psu is a command line utility for working with PowerShell Universal.
psu
is included with the PowerShell Universal installation media.
Admin account operations
Reset the local admin account password in the event of a lockout. The account will be admin
with a password of admin
.
--connection-string
The database connection string
✅
database-type
PostgreSQL, SQL or SQLite (default)
❌
--encryption-key
Database vault encryption key, if changed.
❌
--password
Database vault password, if changed.
❌
--key-size
Database vault password key size, if changed from 128.
❌
Commands for working with the PowerShell Universal database.
Convert a v4 LiteDB Database to SQLite
--path
The path of the database to convert
✅
Migrate from one schema version to another. Migrating to lower versions can cause data loss.
--connection-string
Connection string to the database
✅
--target-version
The database schema version. Defaults to "Latest"
❌
--database-type
PostgreSQL, SQL or SQLite (default)
❌
Migrates from one database to another. This command can migrate between database types.
--target-connection-string
Target database connection string
✅
--source-connection-string
Source database connection string
✅
--target-database-type
PostgreSQL, SQL or SQLite (default)
❌
--source-database-type
PostgreSQL, SQL or SQLite (default)
❌
Commands for working with PSU git repositories. This command uses the internal git services to work with the local repository.
Clones a git repository using the git sync service.
--url
The URL of the git remote.
✅
--path
The local path to clone to
✅
--username
The user name for the remote.
❌
--password
The password for the remote
❌
--branch
The branch to clone (default is main).
❌
Pulls from a git remote. A clone will be called if the local repository does not exist.
--url
The URL of the git remote.
✅
--path
The local path to clone to
✅
--username
The user name for the remote.
❌
--password
The password for the remote
❌
--branch
The branch to clone (default is main).
❌
Pushes to a git remote. The repository needs to be cloned first. Changes will not be staged during the push.
--url
The URL of the git remote.
✅
--path
The local path to clone to
✅
--username
The user name for the remote.
❌
--password
The password for the remote
❌
--branch
The branch to clone (default is main).
❌