تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

craft-cli

بواسطة nerveband

CLI Utilities
1.9kالتنزيلات وفق ما يذكره clawskills.sh
1المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Interact with Craft Documents via the `craft` CLI tool.

الوصف

ما الذي تفعله هذه المهارة

A CLI tool for interacting with Craft Documents through the Craft API. Supports listing, searching, creating, updating, and deleting documents across multiple Craft spaces. Output formats include JSON, table, and markdown.

Returns JSON by default, making it easy to pipe Craft document data into scripts or LLM workflows without parsing HTML or using a GUI.

متى تستخدمها

  • Searching Craft docs for a meeting note by keyword
  • Creating a new document from a markdown file
  • Exporting a Craft document to a local file
  • Switching between personal and business Craft spaces
  • Piping document lists to other tools for processing

مثال على سير العمل

الإدخال

User asks: find all documents mentioning 'proposal' and export the first result

الوكيل
  1. 1

    Run craft search 'proposal' to get matching documents

  2. 2

    Parse the JSON output to extract the first document ID

  3. 3

    Run craft get <document-id> --output proposal.md to save the file

  4. 4

    Confirm the export by reading the saved file

الإخراج

A local markdown file containing the matched Craft document's content

المتطلبات

  • Craft API URL (obtained from a Craft Connect link for your space)
  • craft CLI binary installed at /usr/local/bin/craft

التثبيت

clawhub install nerveband/craft-cli

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط