Commands
Tota is a command-line (CLI) tool available in your terminal. You can invoke its
commands with tota [command].
init
Scaffolds a new Tota project in the current directory from the starting template.
tota init
| Option | Description |
|---|---|
-d, --directory | Specify the directory path (defaults to ".") |
-v, --verbose | Enable verbose logging |
new
Creates a new page from a title.
tota new <title>
| Option | Description |
|---|---|
-t, --type | Type of page to create [page, post] |
-f, --force | Force creation of file |
-v, --verbose | Enable verbose logging |
build
Generates static files from source pages.
tota build
| Option | Description |
|---|---|
-v, --verbose | Enable verbose logging |
Deploy
Deploys site to a hosting provider. Currently only deploys to Netlify.
tota deploy
| Option | Description |
|---|---|
--host | Hosting provider (defaults to "netlify") |
-v, --verbose | Enable verbose logging |