Createbooktype

Createbooktype is Booktype’s command-line utility for creating Booktype projects on the disk with auto generated configuration files.

Usage

createbooktype [--database <type>|--profile <type>|--check-versions] <project location>

<project location> can be full path to project location or name of the project.

Example:

argument project name
/var/www/mybk mybk
bk20 bk20
../bk20 bk20

Note

User must have write permissions to create or write to the project location. If project location already exists it will just create the needed files.

Options

--help

Show help message and exit.

--quiet

Do not show any messages.

--verbose

Show messages.

--database <type>

Configure Project to use specific database backend. Options are: “postgres”, “postgresql”, “sqlite”.

--profile <type>

Configure Project to use profile <type>. Options are: “dev”, “prod”.

--check-versions

Check versions of packages

--virtual-env VIRTUAL_ENV

Specifies the default VIRTUAL_ENV

Examples of usage

This will create project called bk2 in current directory. It will use PostgreSQL database as a backend and automatically be set i$

$ ./scripts/createbooktype bk2

This will create project called mybk in /var/www/ directory. It will use Sqlite3 as a backend and will be set in development prof$

$ ./scripts/createbooktype --database sqlite3  --profile dev /var/www/mybk/