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
| Command | Purpose |
|---|---|
shipdocs | Interactive TUI with slash commands |
shipdocs ship [name] | Pack cwd, upload, wait for docs |
shipdocs login | Browser auth; save CLI token |
shipdocs logout | Delete saved token |
shipdocs whoami | Show signed-in identity and org |
shipdocs list | List recent projects |
shipdocs update | Check for and install the latest CLI |
shipdocs help | Print usage |
Environment overrides
| Variable | Purpose |
|---|---|
SHIPDOCS_API | API base URL (default production API) |
SHIPDOCS_APP | Web app URL used for browser login |
SHIPDOCS_CONFIG | Directory for saved CLI config/token |
Web getting started (no CLI)
- Open https://shipdocs.sh/ and create an account (magic link or OAuth).
- Add a project — paste a repo URL or upload a ZIP.
- Wait for indexing; open Docs and Chat in the project UI.
- Optional: flip a project public and share via Showcase.
