Halo Attachment Upload CLI
在 Terminal 中上传文件到 Halo 并得到链接,兼容 Typora 编辑器的图片上传。

安装
npm install @halo-dev/attachment-upload-cli -g
pnpm install @halo-dev/attachment-upload-cli -g
安装完成之后,就可以在 Terminal 中使用 halo-attachment-upload 命令,或者 hau。
配置
hau setup
halo-attachment-upload setup
上传文件
hau -f /path/to/file
halo-attachment-upload -f /path/to/file
在 Typora 中使用
TDB
帮助
❯ hau --help
Usage: @halo-dev/attachment-upload-cli [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
upload|u [options] Upload a file to Halo
setup|s Setup your Halo site url, username and password
help [command] display help for command