Skip to content

CLI Commands

Generate the systemd service file, database, and reference configs.

Terminal window
vps-deployer config -w /opt/vps-deployer -p 3000 -s your-secret-key
FlagTypeDescriptionValidation
-w, --working-dirstringDirectory where projects and data will be storedMust exist
-p, --portnumberPort for the web UI and API1024–50000
-s, --session-keystringSecret key for session encryptionMin 6 characters

This command exits immediately after setup. It does not start the server.

Enable and start the user-level systemd service.

Terminal window
vps-deployer start

Reads configuration from the previously generated service file. No flags required.

Run in development mode (foreground, no systemd).

Terminal window
vps-deployer dev -w /opt/vps-deployer -p 3000 -s your-secret-key

Accepts the same flags as config. Useful for testing or running without systemd.

Hidden command invoked by systemd ExecStart. Not meant for direct use.

Stop, disable, and remove the systemd service.

Terminal window
vps-deployer uninstall

This removes the service file but does not delete your database or working directory.

RuleDetail
Working directoryMust already exist on disk
PortMust be between 1024 and 50000
Session keyMust be at least 6 characters
All flags requiredconfig and dev require all three flags
ErrorCauseFix
Directory does not exist-w path doesn’t existmkdir -p /opt/vps-deployer
Port must be between 1024 and 50000Invalid portChoose a port in range
Session key must be at least 6 characters-s too shortUse a longer key
Service file already existsAlready configuredRun uninstall first or overwrite