CLI
Publish, pull, and manage elephant.md documents from your terminal.
Get Started
- 1Run
No install needed — just run:
npx elephant-mdOr install globally for the shorter
tuskcommand:npm i -g elephant-md - 2Log in
npx elephant-md login githubOr use
npx elephant-md login googlefor Google OAuth. - 3Push a document
npx elephant-md push README.md
push
Publish or update a markdown file on elephant.md.
npx elephant-md push <file> [options]Options
--title— Document title (defaults to first H1 or filename)--slug— URL slug--category— Category (guide, reference, tutorial, blog, note, snippet, doc)--description— Short description--tags— Comma-separated tags--visibility— public, unlisted, or private
pull
Download a document to a local file. Accepts a full URL or @user/slug shorthand.
npx elephant-md pull @user/slug -o output.mdinstall
Install a document into your agent's context. Use --mcp to configure the MCP server instead.
# Install a document
npx elephant-md install @user/slug
# Configure MCP server
npx elephant-md install --mcpupdate
Check for and apply upstream updates to installed documents.
npx elephant-md updatelist
List your published documents.
npx elephant-md listsearch
Search public documents.
npx elephant-md search "react hooks"trending
Show trending documents, optionally filtered by category.
npx elephant-md trending --category guidesave / unsave
Bookmark or unbookmark a document.
# Bookmark a document
npx elephant-md save @user/slug
# Bookmark and add to a collection
npx elephant-md save @user/slug --to my-collection
# Remove bookmark
npx elephant-md unsave @user/slugcollections
Manage your collections.
# List collections
npx elephant-md collections list
# Create a collection
npx elephant-md collections create "My Collection" --public
# Show collection details
npx elephant-md collections show my-collection
# Add/remove documents
npx elephant-md collections add my-collection @user/slug
npx elephant-md collections remove my-collection @user/slug
# Delete a collection
npx elephant-md collections delete my-collectionwhoami
Show the currently authenticated user.
npx elephant-md whoamiConfiguration
Auth token and config are stored in ~/.tusk/config.json. The token is saved after login and used automatically for all authenticated commands.
Categories
Available categories: guide, reference, tutorial, blog, note, snippet, doc.