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 initGlobal Installation Dependencies
Install local-cms globally, then run the initialization guide through the cms command.
shell
npm i @huyikai/local-cms -g
cms initManual Installation
Install local-cms into the project's development dependencies.
sh
npm i @huyikai/local-cms -DThen modify the package.json file, add the cms command.
json
{
"scripts": {
"cms": "node node_modules/@huyikai/local-cms/cms.js docs"
}
}