CLI Reference
See Quickstart for examples of how to use the CLI
Full CLI Reference
posty
posty [OPTIONS] COMMAND [ARGS]...
build
Build a Posty site as rendered HTML
posty build [OPTIONS]
Options
- -o, --output <output>
Output directory
- -c, --config <config>
Path to your config file
import
Import a site from another static site generator
posty import [OPTIONS] COMMAND [ARGS]...
posty1
Import a Posty 1.x site from PATH
posty import posty1 [OPTIONS] PATH
Arguments
- PATH
Required argument
init
Initialize a Posty site
posty init [OPTIONS]
new
Create a new post or page
posty new [OPTIONS] COMMAND [ARGS]...
page
Create a new page from the template
posty new page [OPTIONS]
Options
- --name <name>
Name of the new page
post
Create a new page from the template
posty new post [OPTIONS]
Options
- --name <name>
Name of the new post