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 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 pages whose fragments are marked as a WIP. Trio will clean your site's pages of all their data-trio-* tag attributes.
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
Cache Bust Your Release
$ trio cachebust | c
Serve Your Site
Serve Your Development Builds
$ trio serve | s
Serve Your Release Builds
$ trio serve | s -r
See Also
Your Financial Support Of This Project Is Greatly Appreciated
Trio is an open source project and is therefore free of charge to use both for noncommercial and commercial use, but when you use Trio to create a new website, please consider donating a few bucks. It doesn't take very long, the process is secure, and it will allow us to continue to support the community and to maintain and enhance Trio going forward.