명령줄(lnote)

가이드 보기lnote 명령줄 가이드

같은 MCP 작업이 스크립트와 자동화를 위한 콘솔 실행 파일 lnote에도 있습니다(lightnote cli <command>로도 접근 가능). 모든 작업은 --root로 설정한 루트 폴더(기본값: 현재 폴더)로 제한됩니다.

예시:

lnote list --recursive
lnote read --path src/main.cpp --start-line 1 --end-line 40
lnote write --path note.md --content "Hello"
echo content | lnote write --path note.md --content -
lnote search --query TODO --regex
lnote query --sql "SELECT * FROM read_parquet('data.parquet') LIMIT 10"
lnote describe --path data.parquet
lnote search-notes --query "예산에 대해 어디에 적었는지"
lnote audit-links
lnote xlsx-read --path sheet.xlsx --sheet 0
lnote data-diff --a before.parquet --b after.parquet --mode changed --keys id
lnote db-describe --connection data.lnc --table customers
lnote db-export --connection dados.lnc --sql "SELECT * FROM clientes" --out clientes.parquet
lnote due-tasks
lnote export --sql "SELECT * FROM read_csv_auto('e.csv') WHERE state='NY'" --out ny.parquet
lnote zip-list --path export.isx
lnote zip-read --path export.isx --entry job/definition.xml
lnote task-projects
lnote tasks --project Backlog
lnote create-task --project Backlog --title "Review the text" --effort 2
lnote move-task --project Backlog --task-id 5 --status-id 2
lnote git-status
lnote http --url https://api.example.com --method GET
lnote notify --message "Processing finished"

전역 옵션: --root <folder>, --json (구조화된 {ok,data,error} 출력), --help(또는 lnote <command> --help), --version. 알 수 없는 명령에는 제안("혹시 이걸 찾으셨나요?")이 표시됩니다.

오래된 데이터 일괄 업데이트: lnote upgrade <폴더> 는 이전 버전의 LightNote가 기록한 파일을 한 번에 최신 형식으로 바꿉니다. 현재 대상은 .lns와 .lne로 바뀐 옛 확장자 .lnsh와 .lnsm입니다. 앱은 각 파일을 열 때 이미 이 작업을 자동으로 수행하므로, 이 명령은 파일이 수십 개여서 하나씩 열고 싶지 않을 때 사용합니다. --dry-run을 쓰면 아무것도 건드리지 않고 무엇이 바뀔지 미리 볼 수 있습니다. 필수가 아니라 편의 기능이며, 이 명령 없이도 예전 파일은 정상적으로 열립니다.