Try the command line tool¶
SightPress has a command line tool for tasks such as creating a website. This guide shows you how to run it.
List the commands¶
- Open a terminal and go to the
skeletonfolder. -
Type:
-
You should see a list of commands, each with one line about what it does, such as
site:create Creates a site: its database, its first admin and its roles.
List your websites¶
-
Type:
-
You should see one sentence for each website, with its status, its addresses, its language and its database. If you haven't created a website yet, it says "There are no sites yet. Create one with site:create."
Get help with one command¶
-
Type
helpand the name of the command, for example: -
You should see what the command needs and what each option means.
To create a website, see Create a website. The command line reference lists every command.
Shortcut for macOS and Linux
If the make program is installed, make site-create NAME=demo runs site:create demo and asks for the rest.