Miss any of our Open RFC calls?Watch the recordings here! »

@marklet/cli

2.0.2 • Public • Published

@marklet/cli

Build Status dependency npm npm bundle size (minified)

A command line interface for marklet.

Usage: marklet [options] [command]

A command line interface for marklet.

Options:
  -v, --version                       output the version number
  -h, --help                          output usage information

Commands:
  parse [options] [filepath]          Parse a marklet file into marklet AST.
  edit [options] [filepath|dirpath]   Edit a marklet file or project.
  watch [options] [filepath|dirpath]  Watch a marklet file or project.

General options

config options

  -l, --language [lang]  default language in codeblocks (default: "")
  -H, --no-header-align  disable header to align at center
  -S, --no-section       disallow section syntax

server options

  -o, --open             open in the default browser
  -p, --port [port]      port for the development server (default: 10826)

CLI Commands

parse

Usage: marklet parse [options] <filepath>

Parse a marklet file into marklet AST.

Options:
  (support config options)
  -f, --format [format]  the output format (default: "json")

edit

Usage: marklet edit [options] [filepath|dirpath]

Edit a marklet file or project.

Options:
  (support config options)
  (support server options)

watch

Usage: marklet watch [options] [filepath|dirpath]

Watch a marklet file or project.

Options:
  (support config options)
  (support server options)

Keywords

none

Install

npm i @marklet/cli

DownloadsWeekly Downloads

2

Version

2.0.2

License

MIT

Unpacked Size

11 kB

Total Files

9

Last publish

Collaborators

  • avatar
  • avatar