cubicweb-ctl is the swiss knife to manage CubicWeb instances. The general syntax is
cubicweb-ctl <command> [options command] <arguments commands>
To view available commands
cubicweb-ctl
cubicweb-ctl --help
Please note that the commands available depends on the CubicWeb packages and cubes that have been installed.
To view the help menu on specific command
cubicweb-ctl <command> --help
By default, those three commandes are encapsulated in create so that they can be executed consecutively.
This command needs to be followed by the commands responsible for the database initialization. As those are specific to the datastore, specific Google AppEgine database, they are not available for now in cubicweb-ctl, but they are available in the instance created.
For more details, please see gaecontents .
See also chapter internationalisation.
To create an instance from an existing cube, execute the following command
cubicweb-ctl create <cube_name> <instance_name>
This command will create the configuration files of an instance in ~/etc/cubicweb.d/<instance_name>. The tool cubicweb-ctl allows you to execute the command db-create and db-init when you run create so that you can complete an instance creation in a single command.
If you decide not to execut those commands while cubicweb-ctl create, then you will have to execute them seperately(cubicweb-ctl db-create, cubicweb-ctl db-init ) otherwise your installation will not be complete and you will not be able to launch your instance.
Create first your new cube cube
cubicweb-ctl newcube <mycube>
This will create a new cube in /path/to/forest/cubicweb/cubes/<mycube> for a Mercurial forest installation, or in /usr/share/cubicweb/cubes for a debian packages installation, and then create an instance as explained just above.