You don’t install DeepSpace globally. The CLI ships inside theDocumentation Index
Fetch the complete documentation index at: https://docs.deep.space/llms.txt
Use this file to discover all available pages before exploring further.
deepspace package, which is added to every new app by the scaffolder. The only thing you need on your machine ahead of time is Node.js.
Prerequisites
- Node.js 20 or later. Verify with
node --version. If you need to upgrade, use nvm or download an installer from nodejs.org. - npm, pnpm, or yarn. Examples in these docs use npm; substitute your favorite if you prefer.
- A GitHub or Google account. Used for signing in to the CLI and your deployed apps. There’s no separate DeepSpace account.
Create a new app
- Downloads the latest
create-deepspacepackage on demand (no global install). - Scaffolds a Vite + React app with the worker and Durable Objects pre-wired.
- Installs
deepspaceand the starter’s dependencies. - Initializes a git repository.
npx deepspace dev won’t start until you’ve logged in.
Scaffold options
.git, .gitignore, LICENSE, any *.md, etc.). Anything else triggers a guardrail to prevent overwriting an existing project.
Log in to the CLI
Every CLI command that talks to the platform -dev, deploy, invoke, test-accounts, and the rest - requires a session. Plan to log in once before your first npx deepspace dev.
~/.deepspace/:
~/.deepspace/session- the long-lived refresh token used to mint new JWTs.~/.deepspace/token- the current short-lived JWT, refreshed automatically by other commands.
whoami refreshes the short-lived JWT on demand, so an expired token is handled silently. If ~/.deepspace/session is missing, it prints “Not logged in.” and exits 1. If the session can no longer be refreshed, it prints “Session expired.” and exits 1. In either case, re-run npx deepspace login.
Manage your account, deployed apps, billing, and earnings at dashboard.deep.space. The CLI and the dashboard share one session - signing in once covers both.
Update the SDK
DeepSpace ships frequently. To pull in the latest SDK and CLI, run:Verify your setup
You’re ready to build when all of these succeed:Next steps
- Quickstart - build and deploy your first app.
- Project structure - tour of the scaffolded files.