Boost provides the following components for use within your programs.


The Header component is simply that, a header! It renders an inverted background, with bold and uppercased text, and appropriate margins. It's what the help and failure menus use to separate and denote sections.

import { Header } from '@boost/cli';
<Header label="About" />;


  • label (string) - Text to display for the label. (Required)
  • marginBottom (number) - The bottom margin. Defaults to 1.
  • marginTop (number) - The top margin. Defaults to 1.
  • type (StyleType) - Customize the background color using Style. Defaults to normal text.


The Help component can be used to render elegant command usage and help menus. It's a very complex component that supports everything from command metadata to variadic params, all through the following props (all optional).

import { Help } from '@boost/cli';
config={{ description: 'This is a very cool program', deprecated: true }}
description: 'Name',
type: 'string',


  • categories (Record<string, Category>) - Mapping of categories to use for command and option grouping.
  • config (CommandConfig) - Configuration metadata about the current command.
  • commands (Record<string, CommandConfig>) - Mapping of commands, typically sub-commands.
  • header (string) - A header to display at the top of the output.
  • options (Record<string, OptionConfig>) - Mapping of options.
  • params (ParamConfig[]) - List of params.


The Failure component can be used to render a beautiful failure menu, for an error and its stack trace. The error prop must be provided with an Error instance.

import { Failure } from '@boost/cli';
<Failure error={new Error('Something is broken!')} />;


  • error (Error) - The primary error to display in red. (Required)
  • hideStackTrace (boolean) - Hide the primary error stack trace. Defaults to false.
  • warnings (Error[]) - Optional errors as warnings to display in yellow.


The Style component is special in that it renders and applies colors based on the chosen theme. It accomplishes this through the type prop, which accepts one of the theme palette names.

import { Style } from '@boost/cli';
<Style type="success">Downloaded 123 packages</Style>;

Furthermore, it also supports text styling similar to Ink's Text component. This uses chalk under the hood.

<Style bold type="failure">
Failed to download packages

It's highly encouraged to use this component for all color based styling, so that consumers can always use their chosen theme!


  • inverted (boolean) - Invert the colors to style the background instead of foreground. Defaults to false.
  • type (StyleType) - Theme palette name to style with. Accepts "default", "failure", "info", "inverted", "muted", "notice", "success", and "warning". Defaults to none.