Command Line
Trio provides extensive command line functionality for getting help, building and serving your sites.
Help
General Help Information
$ trio --help | -h
Command Specific Help Information
$ trio --help | -h <command>
Create A New Project
See ESLint Support For Your JavaScript for adding eslint support to your projects.
Create A Bare Project In Path
$ trio new | n <path/to/project>
Create A Project With Scaffolding In Path
A scaffold project when built generates a styled site that contains a full-featured blog and uses collections, so examining its code while reading through the documentation is a great way to learn and master Trio.
$ trio new | n -s <path/to/project>
Build Your Site
Build For Development Vs. Build For Release
Running
build
targets the root/public folder. Run this while developing your site. Trio generates a CSS map file and generates pages whose fragments are marked as a WIP.Running
release
targets the root/release folder. Run this prior to deploying your site. Trio doesn't generate a CSS map file and doesn't generate pages whose fragments are marked as a WIP. Trio will clean your site's pages of all their data-trio-* tag attributes and provides the option to cache bust the generated site.
You can append -m to the following build commands to print out timing metrics.
Build Your Site For Development
$ trio build | b
Build Your Site For Development Incrementally
$ trio build | b -i
Build Your Site For Development With Watch
$ trio build | b -w
Build Your Site For Development Incrementally With Watch
$ trio build | b -iw
Build Your Site For Development With Watch And Serve It In The Default Browser
$ trio build | b -ws
Build Your Site For Development Incrementally With Watch And Serve It In The Default Browser
$ trio build | b -iws
You can replace -iws above with the shortcut -I.
Build Your Site For Release
You can append -m to the following release commands to print out timing metrics.
$ trio release | r
Build Your Site For Release With Cache Busting
$ trio release | r -b
Serve Your Site
Serve Your Development Builds
$ trio serve | s
Serve Your Release Builds
$ trio serve | s -r