hyperctl new page command
Overview
The hyperctl new page command creates a new page index file in an existing website.
Usage
1$ hyperctl new page -h
2Create a new page.
3
4Usage:
5 hyperctl new page [options]
6
7Options:
8 -c, --config path to the website configuration file. (required) (env: HYPER_CONFIG)
9 -l, --layout New page layout.
10 -s, --slug New page slug.
11 -t, --title New page title.
12 -d, --description New page description.
13 --content-type New page content type.
14 --content New page content.
15 --draft Create a draft page. (default: false)
16 -h, --help Display help information.
Example
Options
-c,--config- Path to the website configuration file (
site.yamlorsite.json).Defaults to the
HYPER_CONFIGenvironment variable, if set.To configure a default, use the
exportcommand.1export HYPER_CONFIG="site.yaml" -l,--layout- The new page layout.
See
page.layoutreference.Example
1--layout=post.html -s,--slug- The new page slug.
Most content-types will auto-generate a page slug (see
contenttype.slug), but--slugmay be used in cases where a custom slug is preferred.Example
1--slug "hello-world" -t,--title- The new page title.
See
page.titlereference.Example
1--title "Hello, world" -d,--description- The new page description.
See
page.descriptionreference.Example
1--description "hyperctl new page command reference" --content-type- Name of the content type to use for generating the new page.
Use the
hyperctl content-type lscommand to get a list of available content types for the configured website theme.Example
1--content-type "Blog Post" --content- The new page content.
See
page.contentreference.Example
1--content "Lorem ipsum, hipsters get some." --draft- Create new page as a draft.
See
page.draftreference.