# createdb: Prepare a site database and schema

Source: https://zotonic.com/docs/3015/createdb-prepare-a-site-database-and-schema

URI: https://zotonic.com/id/3015

Language: en

Prepare a site database and schema.

Syntax
------

```text
bin/zotonic createdb <site_name>
```

Requirements and effects
------------------------

Requires a running node and calls z\_db:prepare\_database/1 for the selected site.

This command can create database storage. Check the destination site configuration and database privileges first. Read the returned result before starting the site; preparing the database alone does not prove that module installation or the full site startup will succeed.

Example
-------

```sh
bin/zotonic createdb garden
```

Run commands from the Zotonic workspace root. Replace `garden` with your site name where applicable.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/3015?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/3015?language=en>)
