spacetimedb-cli

Manage SpacetimeDB projects and servers via CLI workflows.

25.0k|1.0k|Updated Jun 17, 2023
One-click install
npx skills add https://github.com/clockworklabs/SpacetimeDB --skill spacetimedb-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spacetimedb-cli
Source: https://github.com/clockworklabs/SpacetimeDB/tree/main/skills/spacetimedb-cli
Command: npx skills add https://github.com/clockworklabs/SpacetimeDB --skill spacetimedb-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides concise, practical CLI guidance so developers can initialize projects, build and publish modules, run local servers, query databases, and troubleshoot SpacetimeDB workflows without repeatedly searching docs.

Core Features & Use Cases

  • Project initialization and scaffolding for Rust, C#, TypeScript, and C++ modules so teams can bootstrap projects quickly.
  • Build, dev, and publish workflows that automate module compilation, hot-reload dev mode, and deployment to local or maincloud servers.
  • Database interaction and monitoring including SQL queries, reducer calls, subscriptions, logs, and schema inspection for iterative development and debugging.
  • Server and authentication management to add/list servers, set defaults, test connectivity, and handle login/logout flows.
  • Client bindings generation to produce SDKs for TypeScript, C#, Rust, and Unreal C++ for integrating modules with client codebases.

Quick Start

Log in with spacetime login, initialize a new project with spacetime init my-game --lang rust, and start live development using spacetime dev.

Frequently Asked Questions about spacetimedb-cli

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

FAQPage Schema
How do I initialize a new SpacetimeDB project and start a local development server?

To initialize a SpacetimeDB project, run `spacetime init my-game --lang rust`, then start a local development server with hot-reload using the `spacetime dev` command for iterative module compilation.

What programming languages does the SpacetimeDB CLI support for module scaffolding and client bindings?

The SpacetimeDB CLI supports Rust, C#, TypeScript, and C++ for project initialization, module scaffolding, and generating client bindings SDKs to integrate modules with client codebases.

How can I execute SQL queries and inspect logs when debugging a SpacetimeDB module?

You can execute SQL queries, call reducers, manage subscriptions, inspect schemas, and view logs for SpacetimeDB modules directly through CLI commands to monitor database interactions during iterative development.

What is the best way to manage SpacetimeDB server configurations and authentication?

Manage SpacetimeDB servers and authentication by using CLI commands to add or list servers, set default targets, test connectivity, and handle login/logout flows for local or maincloud deployments.

How do I build and publish SpacetimeDB modules to a maincloud server?

Build and publish SpacetimeDB modules to a maincloud server by automating module compilation through CLI build workflows, then deploying using the publish command after setting the appropriate server target.

Do I need specific toolchains installed to use the SpacetimeDB CLI for local development?

Yes, SpacetimeDB CLI local development assumes a developer environment with installed toolchains for Rust, C#, and TypeScript, along with an optional local spacetime server for testing modules.