Skip to main content

Getting Started with SpacetimeDB

Installation

You can get started by first installing the spacetime CLI tool. The spacetime CLI tool makes it extremely easy to manage your databases and deployments.

Install the SpacetimeDB CLI tool

Running SpacetimeDB Locally

To develop SpacetimeDB databases locally, you will need to run the Standalone version of the server.

After installing the SpacetimeDB CLI, run the start command:

spacetime start

The server listens on port 3000 by default, customized via --listen-addr.

💡 Standalone mode will run in the foreground. ⚠️ SSL is not supported in standalone mode.

Log in to SpacetimeDB

SpacetimeDB authenticates users using a GitHub login, to prevent unauthorized access (e.g. somebody else publishing over your module). Log in to SpacetimeDB using:

spacetime login

This will open a browser and ask you to log in via GitHub. If you forget this step, any commands that require login (like spacetime publish) will ask you to log in when you run them.

Quickstart Guides

You are now ready to start developing SpacetimeDB modules. Choose your favorite language and follow one of our quickstart guides to get started building your first app with SpacetimeDB.

Next Steps: Learn SpacetimeDB

After completing a quickstart guide, explore these core concepts to deepen your understanding:

Core Concepts

  • Databases - Understand database lifecycle, publishing, and management
  • Tables - Define your data structure with tables, columns, and indexes
  • Functions - Write reducers, procedures, and views to implement your server logic
  • Subscriptions - Enable real-time data synchronization with clients
  • Client SDKs - Connect your client applications to SpacetimeDB