@codepocket/cli

0.0.7 • Public • Published

@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 <코드명>

/@codepocket/cli/

    Package Sidebar

    Install

    npm i @codepocket/cli

    Weekly Downloads

    0

    Version

    0.0.7

    License

    Apache-2.0

    Unpacked Size

    75.9 kB

    Total Files

    10

    Last publish

    Collaborators

    • junghyeonsu
    • shellboy