Skip to content
On this page

CLI 命令

init

初始化 Elog 配置

bash
elog init [option] [value]
optionalias说明默认值
--config-c自定义配置文件的名称elog.config.js
--env-e自定义缓存文件的名称elog.cache.json

sync

同步文章

bash
elog sync [option] [value]
optionalias说明默认值
--env-e指定环境文件 path-
--config-c指定配置文件 pathelog.config.js
--cache-a指定缓存文件 pathelog.cache.json

clean

清理文章、上次同步缓存、上次同步时间

bash
elog clean [option] [value]
optionalias说明默认值
--config-c指定配置文件 path,用于读取存储文章目录elog.config.js
--cache-a指定缓存文件 pathelog.cache.json

upgrade

更新全局 elog 版本到 latest 版本

v0.0.5 以上版本支持。

bash
elog upgrade