Skip to main content
版本:v1.4

Update CLI Reference

This guide introduce how to update CLI reference doc in the website. The whole process was done by script automatically. You need to follow this guide to build your environment.

  1. step up these two projects in the same folder.
$ tree -L 1
.
├── kubevela
└── kubevela.io
  1. Run generate command in kubevela root dir.
cd kubevela/
go run ./hack/docgen/cli/gen.go
  1. Update more docs such as i18n zh
$ go run ./hack/docgen/cli/gen.go ../kubevela.io/i18n/zh/docusaurus-plugin-content-docs/current/cli
scanning rootPath of CLI docs for replace: ../kubevela.io/i18n/zh/docusaurus-plugin-content-docs/current/cli
  1. Then you can check the difference in kubevela.io.
cd ../kubevela.io
git status