dev-to-sync
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

dev-to-sync

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.

oclif Version CircleCI Downloads/week License

Usage

$ 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
...

Commands

dev-to-sync config:delete

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

dev-to-sync config:edit

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

dev-to-sync config:get KEY

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

dev-to-sync config:list

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

dev-to-sync config:set KEY VALUE

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

dev-to-sync create TITLE

Create an article on DEV

USAGE
  $ dev-to-sync create TITLE

See code: src/commands/create.ts

dev-to-sync hello [FILE]

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

dev-to-sync help [COMMAND]

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

dev-to-sync list [INDEX]

List articles in a DEV account

USAGE
  $ dev-to-sync list [INDEX]

See code: src/commands/list.ts

dev-to-sync pull [INDEX]

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

dev-to-sync push [INDEX]

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

Readme

Keywords

Package Sidebar

Install

npm i dev-to-sync

Weekly Downloads

0

Version

0.5.0

License

MIT

Unpacked Size

46.1 kB

Total Files

57

Last publish

Collaborators

  • beeman