Skip to content

@shikijs/cli

NPM versionNPM downloadsGitHub

Shiki in the command line.

Usage

The Shiki CLI works like cat command, but with syntax highlighting.

bash
npx @shikijs/cli README.md

Install

You can also install it globally. Command aliases @shikijs/cli, shiki, skat are registered.

bash
npm i -g @shikijs/cli

skat src/index.ts

Options

--theme

Specify the theme to use. Defaults to vitesse-dark.

bash
npx @shikijs/cli README.md --theme=nord

--lang

Language is auto-inferred from the file extension. You can override it with --lang.

bash
npx @shikijs/cli src/index.js --lang=ts

Released under the MIT License.