18 Jan modified: 8 years ago

Useful GRAV CLI commands

grav cli gChambers

Watch SCSS folder for changes to: _custom.scss**

A separate gitBash CLI needs to be opened from within the theme root directory, NOT the site root directory.

Open gitBash in the directory that contains the base scss folder. /c/MAMP/htdocs/gravBlog/user/themes/gregthemetwo Keep this terminal open throughout the entire session.

$ scss --load-path ../antimatter/scss --watch scss:css-compiled

Clear cache (localhost)
bin/grav clear-cache


To get a list of all the commands available in Grav, you can run the command:
$ bin/grav list


To get help for a specific command, you can prepend help to the command:
$ bin/grav help install


Style overrides or additions should be made in the _custom.scss file
$/user/themes/gregTheme/scss/template/_custom.scss

NOTE: THE INFORMATION BELOW IS NOT CORRECT. WILL NEED TO BE RE-WRITTEN AT A LATER DATE

Creating a new project Navigate to htdocs and create a new folder with project name. Open that folder and right-click inside. Choose "Git Bash Here".
$ bin/grav new-project C:\MAMP\htdocs\zzTestNewestProject

The command above will work but there is still a persistant issue that NEEDS to be solved. Unable to complete the task of adding the needed dependencie files:

Pages Initializing
    C:\MAMP\htdocs\gravBlog/user/pages -> Created
    mappings: /.editorconfig does not exist!

install should be run with --symlink|--s to symlink first

Next Post Previous Post