publish_database
Publish or update a SpacetimeDB database from a module project directory using the CLI, with an option to clear existing data before publishing.
Instructions
Publish or update a database using the spacetime CLI.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database": "<database>",
"project_path": "<project_path>"
},
"name": "publish_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | The database name. Required if no default is set. | |
| clear_data | No | If true, delete existing data before publishing | |
| project_path | Yes | Path to the module project directory |