1.2.2 • Published 4 years ago

cnblogs-helper v1.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

cnblogs-helper

一个同步博客园随笔的工具。

安装

npm install -g cnblogs-helper

使用

初始化

cbh init

cbh init [--reset]
  • 说明:初始化博客园随笔同步工具(默认拉 999 个随笔)
  • 参数:
    • --reset : 删除原有数据库,重新初始化

随笔

cbh post pull

cbh post pull [--num <number>]
  • 说明: 从博客园拉随笔到本地
  • 参数:
    • --num 从博客园拉随笔的个数(默认 200)

cbh post add

cbh post add
  • 说明: 本地随笔变动添加到数据暂存区
cbh post remove
  • 说明: 删除暂存区将要提交到博客园的随笔

cbh post push

cbh post push
  • 说明: 将暂存区随笔变动推到博客园

cbh post list

cbh post list
  • 说明:查看暂存区的随笔
  • 参数:

    • --waitpush (默认)列出将要提交到博客园的随笔
    • --all 列出全部随笔
    • --failed 列出提交到博客园失败的随笔