🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@bifos/dooray-cli

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bifos/dooray-cli

CLI tool for Dooray project management — AI agent & terminal friendly

Source
npmnpm
Version
0.5.4
Version published
Weekly downloads
35
-25.53%
Maintainers
1
Weekly downloads
 
Created
Source

dooray-cli

NHN Dooray REST API를 래핑한 CLI 도구입니다. 터미널과 AI 에이전트 환경에서 Dooray 업무를 관리할 수 있습니다.

A CLI tool wrapping the NHN Dooray REST API. Manage Dooray tasks from your terminal or AI agent workflows.

설치 (Installation)

npm install -g @bifos/dooray-cli

초기 설정 (Setup)

대화형 마법사로 한 번에 설정할 수 있습니다:

dooray setup

API Endpoint 선택 → API Key 입력 → 연결 테스트 → 메일 설정(선택)을 순서대로 진행합니다. API 토큰은 https://{tenant}.dooray.com/setting/api/token에서 발급할 수 있습니다.

수동 설정도 가능합니다:

dooray config set base-url https://api.dooray.com
dooray config set api-key <YOUR_API_TOKEN>
dooray doctor

사용법 (Usage)

프로젝트

dooray project list                        # 프로젝트 목록 (기본: public)
dooray project list --search ocr           # 코드로 검색
dooray project list --type private         # 개인 프로젝트 목록
dooray project members tc-ocr              # 멤버 목록
dooray project workflows tc-ocr            # 워크플로우 목록
dooray project groups tc-ocr              # 멤버 그룹 목록 (ID / Code)
dooray project tags tc-ocr                # 태그 목록 (ID / Color / Name / Group / Mandatory)

태그 캐시 갱신: 이전 버전에서 캐시한 태그가 색상 없이 표시되면 dooray cache clear 실행 후 다시 조회하세요.

멤버

dooray member list tc-ocr                  # 프로젝트 멤버 목록 (이름·organizationMemberId)
dooray member get <organizationMemberId>   # 멤버 상세 (cache 우회, ADR-021)

업무

dooray post list tc-ocr                    # 업무 목록 (최신순)
dooray post search tc-ocr "키워드"          # 제목 검색
dooray post get tc-ocr 42                  # 업무 상세
dooray post get tc-ocr 42 --json           # JSON 출력

업무 식별 방식 (post 하위 12개 명령 공통)

방식예시
<project> <number>dooray post get tc-ocr 42
Dooray URL positionaldooray post get https://x.dooray.com/task/to/4319587406666362045
--id <postId>dooray post get --id 4319587406666362045
--url <url>dooray post get --url https://x.dooray.com/task/to/...

대상: post get/edit/done/workflow, post comment list/add/edit/delete, post file list/upload/download/download-all/delete. AI 에이전트는 사용자 메시지의 Dooray URL을 그대로 첫 인자로 전달하면 가장 빠르다 (ADR-020).

업무 생성

dooray post create tc-ocr \
  --title "업무 제목" \
  --body "본문 마크다운" \
  --to "담당자이름" \
  --priority normal

# 본문을 파일에서 읽기 (--body와 --body-file은 동시 사용 불가)
dooray post create tc-ocr --title "업무 제목" --body-file ./content.md

# 메타 옵션: --tag(반복) / --parent / --workflow / --milestone
dooray post create tc-ocr \
  --title "업무 제목" --body "본문" --to "담당자이름" \
  --tag "버그" --tag "긴급" \
  --parent "tc-ocr/337" \
  --workflow "진행 중" \
  --milestone "Sprint 12"

mandatory-tag 정책 프로젝트(예: tc-ocr)에서는 mandatory 그룹마다 1개 이상 --tag로 지정해야 한다. 누락 시 클라이언트가 사전 검증으로 후보 목록과 함께 에러 출력.

업무 수정

# 대화형 ($EDITOR)
dooray post edit tc-ocr 42

# 비대화형 (AI 에이전트 친화)
dooray post edit tc-ocr 42 --title "새 제목" --body "새 본문"

# 본문을 파일에서 읽기
dooray post edit tc-ocr 42 --body-file ./updated.md

댓글

dooray post comment list tc-ocr 42
dooray post comment add tc-ocr 42 --body "댓글 내용"
dooray post comment add tc-ocr 42 --body-file ./comment.md

table 출력의 Creator 컬럼은 프로젝트 멤버 캐시로 자동 enrich되며, --json은 raw 응답을 유지한다 (ADR-021).

comment list 필터 옵션

# 최신 5개 (desc 정렬)
dooray post comment list tc-ocr 42 --latest 5

# 특정 시간 이후 댓글만
dooray post comment list tc-ocr 42 --since 2026-04-27

# 작성자 이름으로 필터 (부분일치)
dooray post comment list tc-ocr 42 --from-author 홍길동

# 오름차순 / 내림차순 정렬
dooray post comment list tc-ocr 42 --sort asc
dooray post comment list tc-ocr 42 --sort desc
dooray post comment list tc-ocr 42 --reverse   # --sort desc alias

comment latest

최신 댓글 1개(또는 N개)를 빠르게 조회한다.

# 최신 댓글 1개
dooray post comment latest tc-ocr 42

# 최신 3개
dooray post comment latest tc-ocr 42 -n 3

# URL로도 가능
dooray post comment latest --url <dooray-url>

상태 변경

dooray post done tc-ocr 42                 # 완료 처리
dooray post workflow tc-ocr 42 "진행 중"    # 워크플로우 변경

위키

dooray wiki list                           # 위키 목록
dooray wiki pages tc-ocr                   # 페이지 목록
dooray wiki page get tc-ocr <page-id>      # 페이지 상세
dooray wiki page create tc-ocr --title "..." [--parent <page-id>] [--body "..." | --body-file <path>]
dooray wiki page edit tc-ocr <page-id> --title "새 제목"                   # 제목만 (비대화형)
dooray wiki page edit tc-ocr <page-id> --body "..." | --body-file <path>  # 본문만 (비대화형)
dooray wiki page edit tc-ocr <page-id>                                     # $EDITOR (플래그 없을 때)

메일

IMAP을 통해 Dooray 메일을 조회할 수 있습니다. 메일 설정은 dooray setup에서 한 번에 진행하거나, 수동으로 설정할 수 있습니다.

# 수동 설정 (dooray setup 사용 시 불필요)
dooray config set imap-username your@email.com
dooray config set imap-password <IMAP_APP_PASSWORD>

# 메일 조회
dooray mail list                           # 최근 메일 목록
dooray mail list --unread                  # 안읽은 메일만
dooray mail list --search "키워드"          # 제목 검색
dooray mail list --size 50                 # 조회 개수 지정
dooray mail get <uid>                      # 메일 상세
dooray mail get <uid> --json               # JSON 출력

# 메일 발송
dooray mail send --to "user@example.com" --subject "제목" --body "본문"
dooray mail send --to "a@b.com" --cc "c@d.com" --subject "제목" --body-file ./content.md
dooray mail send --to "a@b.com" --subject "HTML 메일" --body "<h1>Hello</h1>" --html

# 메일 답장 (스레드 유지)
dooray mail reply <uid> --body "답장 내용"

첨부파일

업무에 파일을 첨부하거나, 첨부된 파일을 다운로드할 수 있습니다.

# 첨부파일 목록
dooray post file list <project> <number>

# 파일 다운로드
dooray post file download <project> <number> <file-id>
dooray post file download <project> <number> <file-id> -o ./downloads

# 전체 파일 다운로드
dooray post file download-all <project> <number> -o ./downloads

# 파일 업로드
dooray post file upload <project> <number> ./report.pdf

# 파일 삭제
dooray post file delete <project> <number> <file-id>

URL/--id/--url 모드에서는 sub-id를 옵션으로 전달:

dooray post file download --url <url> --file-id <fileId> -o ./downloads
dooray post file delete   --url <url> --file-id <fileId>
dooray post file upload   --url <url> --file ./report.pdf
dooray post comment edit  --url <url> --comment-id <commentId> --body "..."
dooray post comment delete --url <url> --comment-id <commentId>

출력 모드

플래그설명용도
(없음)테이블 출력사람이 읽기 좋음
--jsonJSON 출력파싱, 파이프라인
--quietID만 출력스크립팅
# 파이프라인 예시
dooray post list tc-ocr --json | jq '.[] | select(.priority == "high")'
dooray post list tc-ocr --quiet | xargs -I{} dooray post done tc-ocr {}

AI 에이전트 연동

skills/dooray-cli/SKILL.md에 AI 에이전트를 위한 스킬 파일이 포함되어 있습니다. Claude Code 등의 AI 에이전트에서 dooray-cli를 자동으로 활용할 수 있도록 의도→커맨드 매핑, 체이닝 예시, 에러 핸들링 가이드가 포함되어 있습니다.

# 스킬 파일 복사 (Claude Code 예시)
cp -r skills/dooray-cli ~/.claude/skills/

캐시

프로젝트, 멤버, 워크플로우, 위키 정보는 ~/.dooray/cache/에 캐시됩니다.

dooray cache clear    # 캐시 삭제
dooray doctor         # 캐시 상태 확인

기술 스택

  • TypeScript + Commander.js
  • ky (fetch 기반 HTTP 클라이언트)
  • @inquirer/prompts (대화형 설정 마법사)
  • tsup (esbuild 번들러)
  • chalk + cli-table3 (출력 포맷)

개발

pnpm install
pnpm run build
node dist/index.js --help

# 글로벌 링크
pnpm link --global
dooray --help

라이센스

MIT

Keywords

dooray

FAQs

Package last updated on 29 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts