CLI / getting started

Install the ShipDocs CLI, authenticate, and upload a local working directory for documentation.

URL: https://shipdocs.sh/docs/cli
Markdown: https://shipdocs.sh/docs/cli.md
Install script: https://shipdocs.sh/install.sh

What is the ShipDocs CLI?

The ShipDocs CLI is a single installable binary that indexes a local working directory: it packs the current folder (respecting .gitignore), uploads it to ShipDocs, and waits for the Overview plus per-component docs. It exists for CI, air-gapped machines, and teams that cannot approve a GitHub App.

Do I need the CLI, or can I use the web app?

Either works. The web app imports GitHub, GitLab, and Bitbucket repos through OAuth, or accepts a ZIP upload, with no install. The CLI is optional: it indexes folders the web app cannot reach and gives you login, ship, list, and update commands from a terminal.

What does the ShipDocs CLI upload?

It uploads the current working directory, not your git history, and it honors .gitignore so secrets and build output stay local. Files travel over TLS, are encrypted at rest with AES-256-GCM once imported, and are never used to train AI models.

Which commands does the ShipDocs CLI support?

shipdocs (interactive TUI), ship [name] to pack and upload the cwd, login and logout for browser auth and token storage, whoami for the signed-in identity, list for recent projects, update to upgrade the binary, and help for usage. Environment overrides cover API and app URLs plus config storage.

Install

curl -fsSL shipdocs.sh | sh

The installer downloads the platform binary. Equivalent: fetch https://shipdocs.sh/install.sh and run it.

Shell clients hitting https://shipdocs.sh/ with a curl/wget user-agent also receive the install script (Cloudflare middleware).

Authenticate

shipdocs login

Opens the browser, completes OAuth / magic-link sign-in, and stores a CLI token locally. Check identity:

shipdocs whoami

Sign out:

shipdocs logout

Ship a project (index from cwd)

From the root of your repository:

shipdocs ship

Optional project name:

shipdocs ship my-api

Behavior:

  • Packs the current working directory (respects .gitignore)
  • Uploads to ShipDocs
  • Waits for the indexer to finish generating Overview + component docs

You can also import from the web app (GitHub / GitLab / ZIP) without the CLI: https://shipdocs.sh/

Other commands

CommandPurpose
shipdocsInteractive TUI with slash commands
shipdocs ship [name]Pack cwd, upload, wait for docs
shipdocs loginBrowser auth; save CLI token
shipdocs logoutDelete saved token
shipdocs whoamiShow signed-in identity and org
shipdocs listList recent projects
shipdocs updateCheck for and install the latest CLI
shipdocs helpPrint usage

Environment overrides

VariablePurpose
SHIPDOCS_APIAPI base URL (default production API)
SHIPDOCS_APPWeb app URL used for browser login
SHIPDOCS_CONFIGDirectory for saved CLI config/token

Web getting started (no CLI)

  1. Open https://shipdocs.sh/ and create an account (magic link or OAuth).
  2. Add a project — paste a repo URL or upload a ZIP.
  3. Wait for indexing; open Docs and Chat in the project UI.
  4. Optional: flip a project public and share via Showcase.