0.0.7 • Published 2 years ago

@codepocket/cli v0.0.7

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@codepocket/cli

Install

$ npm i -g @codepocket/cli
$ yarn global add @codepocket/cli

Required

환경변수로 웹에서 발급받은 토큰정보를 넣어주세요

export POCKET_TOKEN=<token>

Commands

help

pocket --help

push

pocket push <파일경로> -n [파일명]
옵션설명예제
-n, --name저장될 파일이름을 직접 지정할 수 있어요pocket push pocket.txt -n codepocket.txt

pull

pocket pull <작성자> <코드명> -p [저장경로]
옵션설명예제
-p, --path파일이 저장될 경로를 직접 지정할 수 있어요pocket pull author code.txt ./pocket/codepocket.txt

list

pocket list -a [작성자] -f [파일명]
옵션설명예제
-a, --author입력된 작성자 이름으로 리스트를 조회할 수 있어요pocket list -a author
-f, --fileName입력된 파일명 이름으로 리스트를 조회할 수 있어요pocket list -f code

delete

자신이 올린 코드만 삭제할 수 있어요

pocket delete <코드명>