Two-way sync of your DEV account with a local folder.
This tool is inspired by (and uses code) from dev-to-git, which implements one-way local -> DEV sync.
$ npm install -g dev-to-sync
$ dev-to-sync COMMAND
running command...
$ dev-to-sync (-v|--version|version)
dev-to-sync/0.5.0 darwin-x64 node-v12.18.2
$ dev-to-sync --help [COMMAND]
USAGE
$ dev-to-sync COMMAND
...
dev-to-sync config:delete
dev-to-sync config:edit
dev-to-sync config:get KEY
dev-to-sync config:list
dev-to-sync config:set KEY VALUE
dev-to-sync create TITLE
dev-to-sync hello [FILE]
dev-to-sync help [COMMAND]
dev-to-sync list [INDEX]
dev-to-sync pull [INDEX]
dev-to-sync push [INDEX]
Delete the config file
USAGE
$ dev-to-sync config:delete
OPTIONS
-g, --global (required) Global config
-h, --help show CLI help
See code: src/commands/config/delete.ts
Edit the config file
USAGE
$ dev-to-sync config:edit
OPTIONS
-g, --global (required) Global config
-h, --help show CLI help
See code: src/commands/config/edit.ts
Retrieve value from app config
USAGE
$ dev-to-sync config:get KEY
OPTIONS
-g, --global (required) Global config
-h, --help show CLI help
See code: src/commands/config/get.ts
List app config
USAGE
$ dev-to-sync config:list
OPTIONS
-g, --global (required) Global config
-h, --help show CLI help
See code: src/commands/config/list.ts
Store value in app config
USAGE
$ dev-to-sync config:set KEY VALUE
OPTIONS
-g, --global (required) Global config
-h, --help show CLI help
See code: src/commands/config/set.ts
Create an article on DEV
USAGE
$ dev-to-sync create TITLE
See code: src/commands/create.ts
describe the command here
USAGE
$ dev-to-sync hello [FILE]
OPTIONS
-f, --force
-h, --help show CLI help
-n, --name=name name to print
EXAMPLE
$ dev-to-sync hello
hello world from ./src/hello.ts!
See code: src/commands/hello.ts
display help for dev-to-sync
USAGE
$ dev-to-sync help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
List articles in a DEV account
USAGE
$ dev-to-sync list [INDEX]
See code: src/commands/list.ts
Pull articles from the DEV api and save them in a local path.
USAGE
$ dev-to-sync pull [INDEX]
OPTIONS
--dir=dir [default: posts] Name of the directory the articles will be stored in
See code: src/commands/pull.ts
Read articles from a local path and push to DEV.
USAGE
$ dev-to-sync push [INDEX]
OPTIONS
-t, --timeout=timeout [default: 500] Timeout in milliseconds between calls to DEV api
See code: src/commands/push.ts