Communitygithub.com

cli-anything-joplin

Befehlszeilenschnittstelle für Joplin-Workflows mit dem echten Joplin-Terminal-Backend.

Was ist cli-anything-joplin?

Diese Fähigkeit ermöglicht die Automatisierung von Joplin-Workflows über die Befehlszeile, einschließlich der Verwaltung von Notizbüchern, Notizen, To-dos, Tags, Anhängen, Suche, Synchronisation sowie Import/Export. Sie nutzt einen zustandsbehafteten Harness, der auf dem echten `joplin` Terminal-Binary basiert und sowohl REPL-Modus als auch einmalige Befehle unterstützt. Die Ausgabe im JSON-Format erleichtert die maschinelle Verarbeitung, und der `--project`-Modus speichert den vollständigen Verlauf mehrschrittiger Workflows. Die Fähigkeit ist für Entwickler und KI-Agenten konzipiert, die Joplin programmatisch steuern möchten, und bietet eine konsistente Befehlsstruktur mit über 50 Befehlen in Gruppen wie `notebooks`, `notes`, `todos`, `tags`, `search`, `sync`, `interop`, `config`, `attach`, `status`, `backend`, `server`, `e2ee` und `session`.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-joplin

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht cli-anything-joplin?

Nutzen Sie diese Fähigkeit, um Joplin-Notizbücher, Notizen, Aufgaben, Tags, Anhänge, Suche, Synchronisation und Import/Export-Workflows über einen zustandsbehafteten Harness zu automatisieren, der auf dem echten joplin-Terminal-Binary basiert.

Voraussetzungen

  • Python 3.10+
  • Joplin-Terminal-Binary als joplin verfügbar
  • Optional: --profile übergeben, um ein bestimmtes Joplin-Profil anzusprechen

Installation

cd joplin/agent-harness
pip install -e .

Verwendung

# REPL-Modus (Standard)
cli-anything-joplin

# Maschinenlesbarer Einmal-Befehl
cli-anything-joplin --json notebooks list

# Zustandsbehaftetes Projekt
cli-anything-joplin project new --name demo -o ./demo.joplin-harness.json
cli-anything-joplin --project ./demo.joplin-harness.json notes create "Besprechungsnotiz"

# Testlauf (kein automatisches Speichern)
cli-anything-joplin --json --dry-run --project ./demo.joplin-harness.json notes create temp

JSON-Ausgabe-Vertrag

Wenn --json aktiviert ist, geben Befehle Folgendes zurück:

  • ok: boolesch
  • command: stabiler Befehlsbezeichner wie notes.list, todos.toggle
  • data: Befehlsnutzdaten
  • error: null bei Erfolg, oder { type, message } bei Fehlschlag

Befehlsgruppen

  • project: new, open, save, info, json, status
  • notebooks: list, create, use, remove
  • notes: list, create, set, get, remove, copy, move, rename
  • todos: list, create, toggle, clear, done, undone
  • tags: list, add, remove, notetags, tagnotes
  • search: run
  • sync: run (--target, --upgrade, --use-lock)
  • interop: import, export
  • config: get, set, list, export, import-file
  • attach: add
  • status: show, restore
  • backend: version, dump, keymap, geoloc, export-sync-status
  • server: status, start, stop
  • e2ee: status, target-status, decrypt, decrypt-file
  • session: status, undo, redo, history

Agenten-Hinweise

  • Bevorzugen Sie --json für auswertbare Ausgabe.
  • Verwenden Sie --project bei mehrschrittigen Workflows, damit der Verlauf gespeichert wird.
  • Einmalige mutierende Befehle speichern das Projekt automatisch, es sei denn --dry-run ist gesetzt.
  • Der REPL-Modus speichert nicht automatisch; führen Sie project save explizit aus.
  • Einige Joplin-CLI-Builds schränken die search-Funktion auf den GUI-Modus ein; wenn Sie "only available in GUI mode" sehen, behandeln Sie die Suche als bestenfalls versuchsweise.
  • Joplin 3.6.x kann einen defekten version-Befehl in npm-globalen Layouts haben; der Harness greift auf installierte Paketmetadaten für backend version zurück, indem er das symlink-aufgelöste Binary-Verzeichnis, das Windows-artige Geschwisterverzeichnis node_modules/joplin, das Unix-artige Elternverzeichnis lib/node_modules/joplin und schließlich npm root -g durchsucht.
  • Backend-stdout/stderr in Befehlsergebnissen sind unverändert; gehen Sie nicht davon aus, dass Warnungen aus Notiztexten oder Exporten entfernt wurden.
  • Parsen Sie bei Fehlschlag error mit dem gleichen command-Feld wie bei Erfolg (config.import_file, e2ee.decrypt_file). Mehrwort-Unterbefehle verwenden einen einzelnen Punkt zwischen Gruppe und Unterbefehl.

Test-Workflow

# Schnelle Rückmeldung
python -m pytest -q cli_anything/joplin/tests/test_core.py
python -m pytest -q cli_anything/joplin/tests/test_full_e2e.py::TestCLISubprocess

# Echtes Backend (joplin muss im PATH sein)
python -m pytest -v cli_anything/joplin/tests/test_full_e2e.py::TestBackendCommands
python -m pytest -v cli_anything/joplin/tests/test_full_e2e.py::TestBackendWorkflows
python -m pytest -v cli_anything/joplin/tests/test_full_e2e.py::TestBackendIntegration

# Gesamte Testsuite
python -m pytest -v --tb=no cli_anything/joplin/tests

# Installierten Konsolenskript-Einstiegspunkt überprüfen
CLI_ANYTHING_FORCE_INSTALLED=1 python -m pytest -v -s cli_anything/joplin/tests/test_full_e2e.py

Aktuelle Validierungsbasis (Windows + Joplin CLI 3.6.2):

  • python -m pytest -q cli_anything/joplin/tests/test_core.py -> 107 passed
  • python -m pytest -q cli_anything/joplin/tests -> 134 passed, 1 skipped

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

Verwandte Skills