Publish an HTML, Markdown, React (.jsx, .tsx) or board (.board.json) file as a new page (version 1); the title defaults to its <title> or first heading.
Option
Meaning
--title <T>
The page's title (default: its <title> or first # heading, else the file name)
--format <html|md|jsx|board>
Html, md, jsx, sheet or board (default: from the file name; .md and .markdown are Markdown, .jsx and .tsx are React, .sheet.json is a sheet, .board.json is a board)
Write the page as a file: one board as PNG or SVG, every board as PDF, PPTX or zip, or the page as standalone HTML; --board picks one board, or a deck's slide by its title or number.
Option
Meaning
--format <png|svg|pdf|pptx|html|zip>
Png or svg (one board), pdf (one page per board), pptx (one slide per board), html (the page, opens offline) or zip
--board <B>
One board or slide, by its data-id, its name or its number from 1; a PNG or SVG of a design or a deck with several needs one
--scale <1|2>
1 or 2: the pixel ratio the boards render at (default: 2 for pdf and pptx, else 1)
--out <file>
Write the file here (default: <id>[-<board>].<format> in the working directory)
Check a design against its design system: colours, font sizes and spacing off its tokens, and text below WCAG AA contrast; it changes nothing.
Generated from the CLI's own command list (nexus help --json), version 0.45.0. nexus help and nexus <command> --help always show your installed version.