Commands

List of available gloria cli commands

Usage

After installing gloria, several commands are now available for you to interact with your page, create new content, build and distribute easier!

You can find information about the commands and options here.

Available commands

Run Locally

Checkout installation instructions to set up gloria locally.

Setup

Tries to create a _config.yml with the default settings if none exists.

Copy

Copies the contents of the public folder into the build directory overwriting any files built previously.

CSS:Tailwind

Builts the HTML files and runs the tailwind command. Creates a resulting stylesheets/styles.css with the classes used on the project.

Build

Generates all the pages and interpolates data into them.

Builds the site into the desired destination. By default it will use a folder name 'build' in the root directory of the project, and will create it if doesn't exists. If it exists it should delete all it's contents before writing to it.

It won't build to a parent folder. The command will fail if _config.yml is invalid or not present.

It will traverse the folders specified in the _config.yml idealling ignoring the ones that match the exclude property.

Usage:

gloria build [dest]

Options:
  --help         Show help                                             [boolean]
  --dest         Destination path or folder to build the site, by default it
                 uses 'site'.                                      [default: ""]
  --clear        When different to false, it will not
                 overwrite other files in the dest folder.       [default: true]
  --git          By default it will ignore the .git directory.
                 I don't see a reason why would you include it, but if you want
                 to use --git=true.                             [default: false]
  --save         By default it will save new configuration arguments in the
                 _config file.                                   [default: true]
  --silent, -s   Limit the amount of output to the console.
                                                      [boolean] [default: false]
  -v, --version  Show version number                                   [boolean]

Help

Running gloria help will display the most recent list of commands, options and their description.

version

Running gloria --version will display the current version of gloria installed in the project.