brief page
Add, move, remove, inspect, and update documentation pages with Brief's CLI.
Manage documentation pages
Usage#
Subcommands#
brief page move— Move a page and update links (alias: mv)brief page remove— Remove a page (alias: rm)brief page add— Add a pagebrief page inspect— Inspect authored and effective settingsbrief page update— Update validated settingsbrief page order— Place an entry among its siblings; defaults to lastbrief page help— display help for command
Options#
-h, --helpDefaultundefinedbooleanDisplay the concise help for this command
Global options are also accepted.
brief page move#
Move a page and update links (alias: mv)
Aliases: mv
Usage#
Arguments#
<FROM>RequiredstringCurrent page path relative to --root, such as docs/v1/install
<TO>RequiredstringNew page path relative to --root; preserves the title and content
Options#
--dry-runDefaultundefinedbooleanPrint changes without writing them
--no-update-linksDefaulttruebooleanDo not rewrite links when URLs change
-h, --helpDefaultundefinedbooleanDisplay the concise help for this command
brief page remove#
Remove a page (alias: rm)
Aliases: rm
Usage#
Arguments#
<LOCATION>RequiredstringPage folder to remove
Options#
--dry-runDefaultundefinedbooleanPrint changes without writing them
--redirect-to <page>DefaultundefinedstringRedirect its old URL to this page
--allow-404DefaultundefinedbooleanExplicitly allow the old URL to become a 404
-h, --helpDefaultundefinedbooleanDisplay the concise help for this command
brief page add#
Add a page
Usage#
Arguments#
<LOCATION>RequiredstringFolder relative to the Brief workspace, such as docs/v1/getting-started
Options#
--dry-runDefaultundefinedbooleanPrint changes without writing them
--title <text>DefaultundefinedstringPage title; defaults to the folder name
--description <text>DefaultundefinedstringPage description; defaults to a TODO
--extension <extension>DefaultundefinedstringFile extension to create, such as .md
-h, --helpDefaultundefinedbooleanDisplay the concise help for this command
brief page inspect#
Inspect authored and effective settings
Usage#
Arguments#
<PATH>RequiredstringSource path relative to the documentation root
Options#
--locale <tag>DefaultundefinedstringTranslation to inspect or update
--jsonDefaultundefinedbooleanPrint a structured result
-h, --helpDefaultundefinedbooleanDisplay the concise help for this command
brief page update#
Update validated settings
Usage#
Arguments#
<PATH>RequiredstringSource path relative to the documentation root
Options#
--locale <tag>DefaultundefinedstringTranslation to inspect or update
--jsonDefaultundefinedbooleanPrint a structured result
--input <file>DefaultundefinedstringJSON settings patch file; use - for stdin
--set <key=json>Default[]string[]Set a field to a JSON value; repeat as needed
--unset <key>Default[]string[]Remove a field or override; repeat as needed
--dry-runDefaultundefinedbooleanValidate and preview without writing
--no-update-linksDefaulttruebooleanLeave authored links unchanged when URLs change
--title <value>DefaultundefinedstringSet title
--description <value>DefaultundefinedstringSet description
--label <value>DefaultundefinedstringSet label
--slug <value>DefaultundefinedstringSet slug
--canonical <value>DefaultundefinedstringSet canonical
--draft <value>DefaultundefinedstringSet draft
--hidden <value>DefaultundefinedstringSet hidden
--noindex <value>DefaultundefinedstringSet noindex
--searchable <value>DefaultundefinedstringSet searchable
--agents <value>DefaultundefinedstringSet agents
-h, --helpDefaultundefinedbooleanDisplay the concise help for this command
brief page order#
Place an entry among its siblings; defaults to last
Usage#
Arguments#
<PATH>RequiredstringSource path relative to the documentation root
Options#
--before <path>DefaultundefinedstringPlace before this sibling
--after <path>DefaultundefinedstringPlace after this sibling
--firstDefaultundefinedbooleanPlace first
--lastDefaultundefinedbooleanPlace last
--locale <tag>DefaultundefinedstringUpdate this locale override
--dry-runDefaultundefinedbooleanValidate and preview without writing
--jsonDefaultundefinedbooleanPrint a structured result
-h, --helpDefaultundefinedbooleanDisplay the concise help for this command
brief page help#
display help for command