@lark-project/cli
v2.5.2
Published
飞书项目插件开发工具
Downloads
831
Readme
@lark-project/cli
Command line tool for lark project plugin development.
Installation & Usage
To install the cli globally you need to run:
npm i -g @lark-project/cliThen you can use the commands by typing:
lmp stands for Lark Project Management. You can use the "lpm" command to perform various tasks such as init a new project, building and releasing applications, etc.
lpm <cmd> [options]Commands
lpm init <project-name> [plugin-id] [plugin-secret]lpm config <operate> [key] [value]lpm startlpm buildlpm release
lpm init <project-name> [plugin-id] [plugin-secret]
Initialize an Lark Project plugin project
USAGE
$ lpm init <project-name> [plugin-id] [plugin-secret]
OPTIONS
-f, --force overwrite target directory if it exist
-h, --help show CLI help
EXAMPLE
$ lpm init plugin-demo MII_0123456789ABCDEF xxxxxxlpm config <operate> [key] [value]
Set, get or remove plugin configuration
USAGE
$ lpm config <operate> [key] [value]
OPTIONS
-g, --global operate global configuration
-h, --help show CLI help
EXAMPLE
$ lpm config set pluginID MII_0123456789ABCDEF
$ lpm config get pluginID
$ lpm config remove pluginIDlpm start
Start the plugin locally
USAGE
$ lpm start
OPTIONS
-h, --help show CLI help
EXAMPLE
$ lpm startlpm build
Build the plugin project as a product file
USAGE
$ lpm build
OPTIONS
-h, --help show CLI help
EXAMPLE
$ lpm buildlpm release
Build the plugin project as a product file and upload it to the cloud.
USAGE
$ lpm release
OPTIONS
-h, --help show CLI help
EXAMPLE
$ lpm release