colophon docs
← colophon docs

colophon new

Scaffold a new post or page (validated author/persona, unique slug)

Scaffold a new post or page (validated author/persona, unique slug)

Usage: colophon new <command> [flags]

Scaffold a new post or page (validated author/persona, unique slug)

Flags:
  -h, --help       Show context-sensitive help.
      --version    Print version and exit

Commands:
  new post <title> [flags]
    Scaffold a new post (dated, chronological)

  new page <title> [flags]
    Scaffold a new standing page (nav menu, no date)

colophon new post

Usage: colophon new post <title> [flags]

Scaffold a new post (dated, chronological)

Arguments:
  <title>    Entry title

Flags:
  -h, --help              Show context-sensitive help.
      --version           Print version and exit

      --author=STRING     Byline author id (validated; default: first author /
                          Anonymous)
      --persona=STRING    Writing-voice persona id (validated; optional)
      --tag=TAG,...       Tags
      --slug=STRING       Explicit slug (else derived from the title and made
                          unique)
      --unique="hash"     Slug collision strategy: hash | counter
      --in=STRING         Source id to write into (default: the first source)
      --print             Print the file to stdout instead of writing it

colophon new page

Usage: colophon new page <title> [flags]

Scaffold a new standing page (nav menu, no date)

Arguments:
  <title>    Entry title

Flags:
  -h, --help              Show context-sensitive help.
      --version           Print version and exit

      --author=STRING     Byline author id (validated; default: first author /
                          Anonymous)
      --persona=STRING    Writing-voice persona id (validated; optional)
      --tag=TAG,...       Tags
      --slug=STRING       Explicit slug (else derived from the title and made
                          unique)
      --unique="hash"     Slug collision strategy: hash | counter
      --in=STRING         Source id to write into (default: the first source)
      --print             Print the file to stdout instead of writing it

Generated from the binary's --help output by tools/gendocs.