CLICommand reference

CLI command reference

Every public CLI command, argument, and option, grouped by task.

Use openship <command> --help to check the version installed on your machine. <value> is required; [value] is optional. Aliases appear beside the command name.

Global options

OptionMeaning
-V, --versionoutput the version number
--jsonMachine-readable JSON output (stdout data only)
--native-config <file>Run SDK commands using an explicitly trusted JavaScript configuration
-h, --helpdisplay help for command

Put global options before the command, for example openship --json project list. See native mode before using --native-config.

Connect

CommandPurpose
openship loginAuthenticate with a Personal Access Token (create one in dashboard Settings)
openship logoutRemove the stored Openship token
openship contextManage connection contexts (list/use/add/rm)
openship tokenManage personal access tokens
openship apiMake an authenticated request to any Openship API route (like gh api)

Deploy

CommandPurpose
openship initLink the current directory to an Openship project (.openship/project.json)
openship configAuthor and validate openship.json (declarative deploy config)
openship deployTrigger a deployment for the current project
openship deploymentManage deployments (list, inspect, redeploy, rollback, …)
openship logsView or stream a deployment's logs

Applications

CommandPurpose
openship projectManage Openship projects
openship appBrowse, install, and configure catalog apps
openship serviceManage the services in a compose stack (a multi-service project)
openship domainManage custom domains, DNS verification, and SSL certificates

Infrastructure

CommandPurpose
openship serverManage self-hosted SSH servers
openship backupManage backups: policies, runs, restores, destinations
openship edgeInstall and manage the OpenResty edge (reverse proxy, TLS, per-route rules)
openship mailSelf-hosted mail server (iRedMail) setup and admin [self-host]
openship systemInstance settings, onboarding, migration, and data transfer

Local installation

CommandPurpose
openship upStart Openship as a persistent service (boot + auto-restart); --foreground to run attached
openship stopStop Openship (started by openship up) — it won't restart or return on reboot
openship statusShow the local Openship service (installed/running, ports) and the active context's API health
openship doctorCheck database + services health and repair a corrupt local database
openship openOpen the Openship dashboard in your browser
openship installDownload and install the Openship desktop app for this OS
openship updateUpdate the Openship CLI + bundled server to the latest release
openship uninstallRemove Openship from this machine: stop it, delete its data (database, certs, edge config), its images, and ~/.openship. Deployed apps are left running.
openship reset-admin-passwordReset the local admin login on THIS machine (no sign-in required)

Shell

CommandPurpose
openship completionGenerate shell completion scripts

On this page