entry get
Retrieve detailed information about a specific entry, including content preview or full access.
Usage
grapevine entry get <entry-id> [options]Arguments
entry-id
- Type:
string(UUID) - Required: Yes
The unique identifier of the entry to retrieve.
grapevine entry get "entry-123e4567-e89b-12d3-a456-426614174000"Options
--full
- Type:
boolean - Default:
false
Purchase and display full content (requires payment if not free).
grapevine entry get "entry-123e4567..." --full--preview
- Type:
boolean - Default:
true
Show only preview/excerpt (default behavior).
grapevine entry get "entry-123e4567..." --preview--stats
- Type:
boolean - Default:
false
Include detailed statistics (views, revenue, etc.).
grapevine entry get "entry-123e4567..." --stats--raw
- Type:
boolean - Default:
false
Output raw content without formatting (useful for piping).
grapevine entry get "entry-123e4567..." --full --raw > article.mdExamples
Preview Entry
grapevine entry get "entry-123e4567-e89b-12d3-a456-426614174000"Purchase and View Full Content
grapevine entry get "entry-123e4567..." --fullView with Statistics
grapevine entry get "entry-123e4567..." --statsExport Content to File
grapevine entry get "entry-123e4567..." --full --raw > my-article.mdOutput
Preview Mode (Default)
📄 Getting Started with TypeScript
Entry ID: entry-123e4567-e89b-12d3-a456-426614174000
Feed: Tech Blog (feed-789eabcd...)
Author: 0x1234...5678
Price: $0.50 USDC
Published: 2024-03-01 14:30:00 UTC
Tags: typescript, tutorial, beginner
📋 Preview:
Learn the fundamentals of TypeScript and how it can improve
your JavaScript development workflow. This comprehensive guide
covers types, interfaces, generics, and more...
🔒 Full content available for $0.50 USDC
Use --full flag to purchase and view complete article
🌐 Links:
View Online: https://grapevine.markets/entries/entry-123e4567...
Featured Image: https://ipfs.io/ipfs/Qm...Full Content Mode
📄 Getting Started with TypeScript (FULL CONTENT)
✅ Payment processed: $0.50 USDC
📋 Details: [same as preview]
📝 Full Content:
# Getting Started with TypeScript
TypeScript is a powerful superset of JavaScript that adds static
type definitions. This guide will walk you through...
## Why TypeScript?
TypeScript offers several advantages:
- **Type Safety**: Catch errors at compile time
- **Better IDE Support**: Enhanced autocomplete and refactoring
- **Improved Code Documentation**: Types serve as documentation
[... full article content continues ...]
---
💰 Thank you for supporting this content creator!With Statistics
📄 Getting Started with TypeScript
📋 Details: [same as above]
📊 Statistics:
Total Views: 1,247
Unique Purchases: 89
Total Revenue: $44.50 USDC
Average Rating: 4.7/5.0 (23 ratings)
First Published: 2024-03-01
Last Updated: 2024-03-05
Reading Time: ~8 minutesAuthentication
Preview mode works without authentication. Full content purchase requires authentication.
Environment Variable
export PRIVATE_KEY="0xYourPrivateKeyHere"
grapevine entry get "entry-123e4567..." --fullPayment
Purchasing full content requires x402 micropayment (handled automatically). Ensure you have:
- ETH for gas fees
- USDC for the content price
Free Content
# Free entries don't require payment
grapevine entry get "entry-123e4567..." --full
✅ Free content - no payment requiredOwned Content
# Entries you created are always accessible
grapevine entry get "entry-123e4567..." --full
✅ You own this content - no payment requiredContent Export
Save to File
# Export markdown content
grapevine entry get "entry-123e4567..." --full --raw > article.md
# Export with metadata
grapevine entry get "entry-123e4567..." --full > article-with-meta.txtBatch Export
# Export all entries from your feed
grapevine entry list --feed "feed-id" --my | grep "entry-" | while read entry_id; do
grapevine entry get "$entry_id" --full --raw > "${entry_id}.md"
doneNotes
- One-Time Purchase: Once purchased, content is accessible without additional payment
- Preview Quality: Previews show first ~200 characters or custom excerpt
- Content Format: Full content includes complete markdown formatting
- Access History: Purchased content is tracked in your wallet history
Related Commands
- entry list - Browse available entries
- entry add - Create new entries
- entry delete - Delete your entries