# addsite: Create a site application from a skeleton

Source: https://zotonic.com/docs/3005/addsite-create-a-site-application-from-a-skeleton

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

Language: en

Create a site application from a skeleton.

Syntax
------

```text
bin/zotonic addsite [options] <site_name>
```

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

Creates files and prepares site data; it then attempts to compile and start the site through the running node.

Use `-s blog`, `-s empty`, or `-s nodb` to select a skeleton; the default is blog. Use `-H hostname` for its host. `-L` creates in the current directory and links into apps\_user. `-G url` clones a repository first. Database options are `-h` host, `-p` port, `-u` user, `-P` password, `-d` database, and `-n` schema. `-a` sets the admin password. `-A true` adds application startup and a supervisor; `-U true` creates a multi-app layout. Treat generated credentials as private. If startup fails, inspect the created files before retrying.

Example
-------

```sh
bin/zotonic addsite -s blog -H garden.test 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/3005?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/3005?language=en>)
