# CLI command reference
URL: https://openship.io/docs/cli/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 [#global-options]

| Option                   | Meaning                                                                   |
| ------------------------ | ------------------------------------------------------------------------- |
| `-V, --version`          | output the version number                                                 |
| `--json`                 | Machine-readable JSON output (stdout data only)                           |
| `--context <name>`       | Use a saved connection for this command without changing the default      |
| `--api-url <url>`        | Use a remote API for this command; authenticate with OPENSHIP_TOKEN       |
| `--local`                | Use this machine's installation with its private administrator credential |
| `--organization <id>`    | Use a fixed organization scope for SDK resource commands (remote only)    |
| `--native-config <file>` | Run SDK commands using an explicitly trusted JavaScript configuration     |
| `-h, --help`             | display help for command                                                  |

Put global options before the command, for example `openship --json project list`. See [native mode](/docs/cli/native) before using `--native-config`.

## Connect [#connect]

| Command                                                 | Purpose                                                                 |
| ------------------------------------------------------- | ----------------------------------------------------------------------- |
| [`openship login`](/docs/cli/reference/login)           | Connect to Cloud or self-hosted Openship with a Personal Access Token   |
| [`openship logout`](/docs/cli/reference/logout)         | Remove the stored Openship token                                        |
| [`openship context`](/docs/cli/reference/context)       | Manage connection contexts (list/use/add/rm)                            |
| [`openship token`](/docs/cli/reference/token)           | Manage personal access tokens                                           |
| [`openship access`](/docs/cli/reference/access)         | Manage workspaces, members, invitations and resource grants             |
| [`openship credential`](/docs/cli/reference/credential) | Manage stored registry and DNS credentials; reads return masked secrets |
| [`openship git`](/docs/cli/reference/git)               | Browse and update sources through a connected Git provider              |
| [`openship github`](/docs/cli/reference/github)         | Connect GitHub, browse repositories and manage deployment sources       |
| [`openship api`](/docs/cli/reference/api)               | Make an authenticated request to any Openship API route (like `gh api`) |

## Deploy [#deploy]

| Command                                                 | Purpose                                                                    |
| ------------------------------------------------------- | -------------------------------------------------------------------------- |
| [`openship init`](/docs/cli/reference/init)             | Link the current directory to an Openship project (.openship/project.json) |
| [`openship config`](/docs/cli/reference/config)         | Author and validate openship.json (declarative deploy config)              |
| [`openship launch`](/docs/cli/reference/launch)         | Set up this machine and open an app or repository's deployment wizard      |
| [`openship deploy`](/docs/cli/reference/deploy)         | Deploy a project or upload local source without a Git connection           |
| [`openship deployment`](/docs/cli/reference/deployment) | Manage deployments (list, inspect, redeploy, rollback, …)                  |
| [`openship logs`](/docs/cli/reference/logs)             | View or stream a deployment's logs                                         |

## Applications [#applications]

| Command                                           | Purpose                                                          |
| ------------------------------------------------- | ---------------------------------------------------------------- |
| [`openship project`](/docs/cli/reference/project) | Manage Openship projects                                         |
| [`openship app`](/docs/cli/reference/app)         | Browse, install, and configure catalog apps                      |
| [`openship service`](/docs/cli/reference/service) | Manage the services in a compose stack (a multi-service project) |
| [`openship domain`](/docs/cli/reference/domain)   | Manage custom domains, DNS verification, and SSL certificates    |
| [`openship dns`](/docs/cli/reference/dns)         | Manage DNS providers and zone access                             |

## Operations [#operations]

| Command                                                     | Purpose                                                                       |
| ----------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [`openship monitoring`](/docs/cli/reference/monitoring)     | Inspect issues and workload health using the platform's monitoring operations |
| [`openship notification`](/docs/cli/reference/notification) | Manage notification channels, subscriptions and deliveries                    |
| [`openship webhook`](/docs/cli/reference/webhook)           | Manage incoming deploy and job webhooks                                       |
| [`openship audit`](/docs/cli/reference/audit)               | Inspect audit events and retention settings                                   |
| [`openship analytics`](/docs/cli/reference/analytics)       | Read project traffic, deployments and runtime resource measurements           |
| [`openship settings`](/docs/cli/reference/settings)         | Manage user preferences on the selected Openship instance                     |

## Cloud [#cloud]

| Command                                           | Purpose                                                               |
| ------------------------------------------------- | --------------------------------------------------------------------- |
| [`openship billing`](/docs/cli/reference/billing) | Manage Cloud plans, server subscriptions, usage and payment checkouts |

## Infrastructure [#infrastructure]

| Command                                               | Purpose                                                                                      |
| ----------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| [`openship job`](/docs/cli/reference/job)             | Manage self-hosted jobs, schedules, and run logs                                             |
| [`openship server`](/docs/cli/reference/server)       | Manage Cloud and self-hosted deployment servers                                              |
| [`openship backup`](/docs/cli/reference/backup)       | Manage backups: policies, runs, restores, destinations                                       |
| [`openship edge`](/docs/cli/reference/edge)           | Install and manage the OpenResty edge (reverse proxy, TLS, per-route rules)                  |
| [`openship mail`](/docs/cli/reference/mail)           | Self-hosted mail server (iRedMail) setup and admin \[self-host]                              |
| [`openship migration`](/docs/cli/reference/migration) | Discover, import, move and copy Docker workloads between authorized servers, including Cloud |
| [`openship system`](/docs/cli/reference/system)       | Instance settings, onboarding, migration, and data transfer                                  |

## Local installation [#local-installation]

| Command                                                                     | Purpose                                                                                                                                                   |
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`openship up`](/docs/cli/reference/up)                                     | Start Openship as a persistent service (boot + auto-restart); --foreground to run attached                                                                |
| [`openship stop`](/docs/cli/reference/stop)                                 | Stop Openship (started by `openship up`) — it won't restart or return on reboot                                                                           |
| [`openship status`](/docs/cli/reference/status)                             | Show the local Openship service (installed/running, ports) and the active context's API health                                                            |
| [`openship doctor`](/docs/cli/reference/doctor)                             | Check database + services health and repair a corrupt local database                                                                                      |
| [`openship open`](/docs/cli/reference/open)                                 | Open the Openship dashboard in your browser                                                                                                               |
| [`openship install`](/docs/cli/reference/install)                           | Download and install the Openship desktop app for this OS                                                                                                 |
| [`openship update`](/docs/cli/reference/update)                             | Update the Openship CLI + bundled server to the latest release                                                                                            |
| [`openship uninstall`](/docs/cli/reference/uninstall)                       | Remove 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-password`](/docs/cli/reference/reset-admin-password) | Reset the local admin login on THIS machine (no sign-in required)                                                                                         |

## Shell [#shell]

| Command                                                 | Purpose                           |
| ------------------------------------------------------- | --------------------------------- |
| [`openship completion`](/docs/cli/reference/completion) | Generate shell completion scripts |
