0.0.5 • Published 1 year ago

db2md-cli v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

db2md-cli

MySQL数据库文档生成工具, 支持生成markdown以及word文档

安装

npm install -g db2md-cli

使用

$ db2md help g
Usage: db2md generate|g [options] <database> [type]

generate a markdown or docx file against the database

Arguments:
  database                   Specifies the database name
  type                       Specifies the type of file to be generated: md,docx

Options:
  -P, --password [password]  Database password (default: "root")
  -H, --host [host]          Database host (default: "127.0.0.1")
  -u, --username [username]  Database username (default: "root")
  -p, --port [port]          Database host port (default: 3306)
  -o, --output [output]      Document generation path, support for relative path
  -f, --force                overwrite target file if it exists (default: false)
  -h, --help                 Output usage information.

案例: sample

db2md g -u root -p 3306 -P root -H 127.0.0.1 ark_admin md

使用root用户, 密码为root连接ark_admin数据库生成markdown文档, 默认会在当前路径下生成数据库名称.md.

如需生成word文档则将md替换为docx