hackmd-cli

Command-line tool for managing HackMD notes and team notes via the HackMD API.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "hackmd-cli" with this command: npx skills add hackmdio/hackmd-cli/hackmdio-hackmd-cli-hackmd-cli

HackMD CLI

Command-line tool for managing HackMD notes and team notes via the HackMD API.

Setup

Install

npm install -g @hackmd/hackmd-cli

Configure Access Token

Create an API token at hackmd.io/settings#api, then configure:

Interactive login (saves to ~/.hackmd/config.json)

hackmd-cli login

Or via environment variable

export HMD_API_ACCESS_TOKEN=YOUR_TOKEN

For HackMD EE instances, also set the API endpoint:

export HMD_API_ENDPOINT_URL=https://your.hackmd-ee.endpoint

Commands

Authentication

hackmd-cli login # Set access token interactively hackmd-cli logout # Clear stored credentials hackmd-cli whoami # Show current user info

Personal Notes

List all notes

hackmd-cli notes

Get specific note

hackmd-cli notes --noteId=<id>

Create note

hackmd-cli notes create --content='# Title' --title='My Note' hackmd-cli notes create --readPermission=owner --writePermission=owner

Create from file/stdin

cat README.md | hackmd-cli notes create

Create with editor

hackmd-cli notes create -e

Update note

hackmd-cli notes update --noteId=<id> --content='# New Content'

Delete note

hackmd-cli notes delete --noteId=<id>

Team Notes

List team notes

hackmd-cli team-notes --teamPath=<team-path>

Create team note

hackmd-cli team-notes create --teamPath=<team-path> --content='# Team Doc'

Update team note

hackmd-cli team-notes update --teamPath=<team-path> --noteId=<id> --content='# Updated'

Delete team note

hackmd-cli team-notes delete --teamPath=<team-path> --noteId=<id>

Teams & History

hackmd-cli teams # List accessible teams hackmd-cli history # List browsing history

Export

hackmd-cli export --noteId=<id> # Export note content to stdout

Permissions

Available permission values:

Permission Type Values

--readPermission

owner , signed_in , guest

--writePermission

owner , signed_in , guest

--commentPermission

disabled , forbidden , owners , signed_in_users , everyone

Output Formats

All list commands support:

--output=json # JSON output --output=yaml # YAML output --output=csv # CSV output (or --csv) --no-header # Hide table headers --no-truncate # Don't truncate long values --columns=id,title # Show specific columns --filter=name=foo # Filter by property --sort=title # Sort by property (prepend '-' for descending) -x, --extended # Show additional columns

Common Workflows

Sync local file to HackMD

Create new note from file

cat doc.md | hackmd-cli notes create --title="My Doc"

Update existing note from file

cat doc.md | hackmd-cli notes update --noteId=<id>

Export note to local file

hackmd-cli export --noteId=<id> > note.md

List notes as JSON for scripting

hackmd-cli notes --output=json | jq '.[] | .id'

Find note by title

hackmd-cli notes --filter=title=README

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated
Coding

clawhub-rate-limited-publisher

Queue and publish local skills to ClawHub with a strict 5-per-hour cap using the local clawhub CLI and host scheduler.

Archived SourceRecently Updated