# CME Feature Support

기준일: 2026-05-05
기준 패키지: confluence-markdown-exporter==4.1.1 최신 PRD: PRD v1.0

Confluence Export Desktop은 이제 internal exporter를 사용하지 않는다. 제품 경계는 “Python 없이 실행되는 CME GUI Job Runner”다.

핵심 결론:

Job Scopes

Scope 설명
pages 하나 이상의 page URL을 export한다.
pages-with-descendants page URL과 모든 하위 페이지를 export한다.
spaces 하나 이상의 space URL 전체를 export한다.
orgs 하나 이상의 Confluence base URL 전체를 export한다.
auto URL과 Include Children 값으로 scope를 자동 선택한다.

auto 규칙:

Current GUI Surface

현재 GUI는 PySide6 기반이며 연결, 작업, 작업 설정 좌측 사이드바 섹션으로 구성된다.

GUI 작업 화면은 Run을 제공한다. Validate, Preview, Dry Run은 최종 사용자 GUI에 노출하지 않고 엔진/개발자 검증 경로로 유지한다.

GUI Fields

Field CME mapping
Confluence URL CME 실행 대상 URL. 쉼표로 여러 URL 입력 가능.
하위 페이지 포함 auto scope에서 page URL을 pages 또는 pages-with-descendants로 결정한다.
CME 범위 auto, pages, pages-with-descendants, spaces, orgs.
페이지 링크 export.page_href: absolute, relative, wiki.
첨부파일 링크 export.attachment_href: absolute, relative, wiki.
첨부파일 전체 저장 export.attachment_export_all.
페이지 경로 표시 export.page_breadcrumbs.
페이지 속성을 Front Matter로 저장 export.page_properties_as_front_matter.
문서 제목 포함 export.include_document_title.
Jira 정보 보강 export.enable_jira_enrichment.
변경 없는 파일 건너뛰기 export.skip_unchanged.
사라진 파일 정리 export.cleanup_stale.
SSL 검증 connection_config.verify_ssl.
타임아웃(초) connection_config.timeout.
동시 작업 수 connection_config.max_workers.
CME Config JSON CME 원본 config override. GUI 공통 옵션보다 우선한다.

적용 우선순위:

  1. 앱의 기본 CME config template
  2. GUI 공통 옵션
  3. CME Config JSON
  4. 실행 직전 output_path와 Windows Credential Manager 인증 정보 주입

CME Config JSON

GUI가 모든 주요 옵션을 노출하지만, CME의 전체 설정 표면은 CME Config JSON으로 전달한다. 아래 옵션은 기본 템플릿에 포함된다.

export

Key 기본값 설명
log_level INFO CME log level.
output_path Job target dir 실행 직전 target directory로 덮어쓴다.
page_href relative Page link style.
page_path {space_name}/{homepage_title}/{ancestor_titles}/{page_title}.md Page output path template.
attachment_href relative Attachment link style.
attachment_path {space_name}/attachments/{attachment_file_id}{attachment_extension} Attachment output path template.
attachment_export_all true 참조되지 않은 attachment까지 export. 기본으로 모든 첨부파일을 저장한다.
page_breadcrumbs true Markdown breadcrumb 포함.
page_properties_as_front_matter true Page Properties macro를 YAML front matter로 변환.
filename_encoding CME 기본 치환표 파일명 문자 치환 규칙.
filename_length 255 파일명 최대 길이.
filename_lowercase false 경로/파일명 lowercase 강제.
include_document_title false Markdown 상단 document title heading 포함.
enable_jira_enrichment false Jira issue link enrichment. Jira 인증이 추가로 필요할 수 있어 기본값은 꺼둔다.
skip_unchanged true Lockfile 기준 unchanged page skip.
cleanup_stale true 이동/삭제된 page의 stale local file 정리.
lockfile_name confluence-lock.json CME lockfile 이름.
existence_check_batch_size 250 stale cleanup existence check batch size.

connection_config

Key 기본값 설명
backoff_and_retry true Atlassian SDK retry/backoff.
backoff_factor 2 exponential backoff multiplier.
max_backoff_seconds 60 retry 최대 대기 시간.
max_backoff_retries 5 최대 retry 횟수.
retry_status_codes [413, 429, 502, 503, 504] retry 대상 HTTP status code.
verify_ssl true SSL 인증서 검증.
timeout 30 API request timeout seconds.
use_v2_api false Confluence REST API v2 사용.
max_workers 20 병렬 export worker 수.

auth

Confluence auth는 앱이 Windows Credential Manager에서 읽어 실행 직전에 CME config로 주입한다. 사용자가 CME Config JSON에 auth를 넣을 수는 있지만, Confluence base URL에 대한 username/token 값은 실행 직전 값이 우선한다.

Jira enrichment를 쓰려면 CME가 요구하는 Jira auth 구성이 별도로 필요할 수 있다.

Preview / Dry Run

CME-only 구조에서 Preview는 internal diff가 아니다. Preview/Dry Run은 다음만 수행한다.

이 방식은 CME 동작을 복제하지 않기 위한 의도적인 설계다.

Developer CLI Examples

The final-user build is GUI-first. Build the optional developer CLI with scripts\build.ps1 -IncludeCli before using the packaged examples below.

Page with descendants:

.\dist\confluence-export-cli\confluence-export-cli.exe add-job `
  --name "Product Docs" `
  --url "https://company.atlassian.net/wiki/spaces/PROD/pages/123/Root" `
  --target-dir "C:\Users\developjik\Desktop\docs" `
  --cme-scope pages-with-descendants

Space:

.\dist\confluence-export-cli\confluence-export-cli.exe add-job `
  --name "PROD Space" `
  --url "https://company.atlassian.net/wiki/spaces/PROD" `
  --target-dir "C:\Users\developjik\Desktop\prod-space" `
  --cme-scope spaces

Org:

.\dist\confluence-export-cli\confluence-export-cli.exe add-job `
  --name "Company Confluence" `
  --url "https://company.atlassian.net" `
  --target-dir "C:\Users\developjik\Desktop\company-confluence" `
  --cme-scope orgs

Common options:

.\dist\confluence-export-cli\confluence-export-cli.exe add-job `
  --name "PROD Space" `
  --url "https://company.atlassian.net/wiki/spaces/PROD" `
  --target-dir "C:\Users\developjik\Desktop\prod-space" `
  --cme-scope spaces `
  --page-href wiki `
  --attachment-href relative `
  --attachment-export-all `
  --skip-unchanged `
  --cleanup-stale `
  --timeout 60 `
  --max-workers 10

Advanced JSON override:

{
  "export": {
    "page_href": "absolute",
    "attachment_href": "absolute",
    "page_path": "{space_key}/{ancestor_titles}/{page_title}.md",
    "attachment_path": "{space_key}/attachments/{attachment_file_id}{attachment_extension}",
    "skip_unchanged": true,
    "cleanup_stale": true
  },
  "connection_config": {
    "timeout": 60,
    "max_workers": 10,
    "verify_ssl": true
  }
}

Verification

자동 검증 범위:

테스트는 다음을 확인한다.

Notes

build ae4a56f · 2026-11-24