Skip to content

Getting Started

Initialization Guide

local-cms provides an initialization guide. You can choose the following ways to use the initialization guide:

npx

You can run the initialization guide directly through npx.

shell
npx @huyikai/local-cms init

Global Installation Dependencies

Install local-cms globally, then run the initialization guide through the cms command.

shell
npm i @huyikai/local-cms -g
cms init

Manual Installation

Install local-cms into the project's development dependencies.

sh
npm i @huyikai/local-cms -D

Then modify the package.json file, add the cms command.

json
{
  "scripts": {
    "cms": "node node_modules/@huyikai/local-cms/cms.js docs"
  }
}

Last updated:

Released under the MIT License.