spacetimedb-cli

Automate SpacetimeDB module scaffolding, build, publish, and client generation via CLI.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/lioartoil/claude-code-handbook --skill spacetimedb-cli-lioartoil
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spacetimedb-cli
Source: https://github.com/lioartoil/claude-code-handbook/tree/main/skills/spacetimedb-cli
Command: npx skills add https://github.com/lioartoil/claude-code-handbook --skill spacetimedb-cli-lioartoil

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Coordinate and streamline SpacetimeDB project workflows from the command line, reducing setup time and inconsistencies across environments.

Core Features & Use Cases

  • Project scaffolding: initialize Rust/TypeScript modules with standard structure.
  • Build, dev, and publish: compile modules, run local dev servers, and deploy to databases.
  • Client generation: generate typed client code from module definitions.
  • Identity and server management: handle identities and remote servers from a single CLI.

Quick Start

Install the SpacetimeDB CLI, then initialize a new project and start development to see changes in real time.

Frequently Asked Questions about spacetimedb-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new SpacetimeDB module project?

To scaffold a SpacetimeDB module project, run the init command to generate a standard directory structure for Rust or TypeScript modules. This establishes the baseline files needed for local development and deployment.

Can I generate typed client code from a SpacetimeDB module definition?

Yes, you can generate typed client code from SpacetimeDB module definitions. The generate command creates typed client code automatically, allowing applications to interact with the database using strongly typed objects.

What is the best way to run a local SpacetimeDB dev server for real-time debugging?

The best way to run a local SpacetimeDB dev server is using the dev command. This compiles your modules and starts a local development environment, allowing you to see real-time changes during debugging.

How do I publish and deploy SpacetimeDB modules from a CLI?

You publish and deploy SpacetimeDB modules using the publish command within the CLI. This compiles the module code and deploys it directly to a local or remote SpacetimeDB database instance.

Does the SpacetimeDB CLI support executing SQL queries and viewing logs?

Yes, the SpacetimeDB CLI supports executing SQL queries and viewing logs. You can use the sql and logs commands to inspect database state and retrieve runtime execution logs for debugging.

Can I manage remote servers and identities using SpacetimeDB commands?

Yes, you can manage remote servers and identities using SpacetimeDB commands. The identity and server commands handle authentication credentials and configure connections to remote database instances from one interface.