Manage
Manage MDXLD applications and documents
Manage
Manage your MDXLD applications, documents, and deployments.
Document Management
List Documents
List all MDX documents:
mdxdb listFilter by type:
mdxdb list --type BlogPostSort and paginate:
mdxdb list --sort datePublished --order desc --limit 10Search Documents
Full-text search:
mdxdb search "TypeScript"Search specific type:
mdxdb search "TypeScript" --type BlogPostFuzzy search:
mdxdb search "typscript" --fuzzyGet Document
Get document by ID:
mdxdb get /blog/my-postGet from remote:
mdxdb get /blog/my-post --remoteUpdate Document
Update document:
mdxdb set /blog/my-post --data '{"author":"Jane Doe"}'Merge with existing:
mdxdb set /blog/my-post --merge --data '{"tags":["typescript"]}'Delete Document
Delete document:
mdxdb delete /blog/old-postDelete from remote:
mdxdb delete /blog/old-post --remote --forceSync with .do Platform
Pull from Platform
Pull documents from .do platform:
mdxdb pullPull specific type:
mdxdb pull --type BlogPostPull changes since date:
mdxdb pull --since 2024-01-01Push to Platform
Publish documents to .do platform:
mdxdb publishPublish specific documents:
mdxdb publish --ids /blog/post-1,/blog/post-2Publish as draft:
mdxdb publish --draftDeployment Management
List Deployments
List all deployments:
mdxe deployments listCheck Status
Check deployment status:
mdxe statusView Logs
View deployment logs:
mdxe logsTail logs:
mdxe logs --followRollback
Rollback to previous deployment:
mdxe rollbackRollback to specific deployment:
mdxe rollback abc123AI Management
Generate Content
Generate new content:
mdxai generate "Create a blog post about TypeScript"Generate specific type:
mdxai generate "Create a blog post" --type BlogPostEdit Content
Edit existing content:
mdxai edit blog-post.mdx "Make the tone more professional"Preview changes as diff:
mdxai edit blog-post.mdx "Add examples" --diffEnrich Content
Enrich with metadata:
mdxai enrich blog-post.mdx --add-metadata --add-seoEnrich from remote datasources:
mdxai enrich blog-post.mdx --datasources https://api.do/wikipediaValidation
Validate documents:
mdxld validate blog-post.mdxValidate against schema:
mdxld validate blog-post.mdx --schema schema.jsonValidate all documents:
mdxld validate --allConfiguration Management
View Configuration
mdxe configSet Configuration
mdxe config set target cloudflare
mdxe config set domain example.comReset Configuration
mdxe config resetAuthentication
Login
Login via OAuth:
mdxe loginLogout
Logout:
mdxe logoutCheck Auth Status
mdxe whoamiBatch Operations
Bulk Generate
Generate multiple documents:
mdxai generate --batch prompts.jsonBulk Edit
Edit multiple documents:
mdxai edit "**/*.mdx" --instruction "Fix grammar"Bulk Enrich
Enrich multiple documents:
mdxai enrich "**/*.mdx" --add-metadata --add-seoBulk Publish
Publish multiple documents:
mdxdb publish --type BlogPost --modified-since 2024-01-01Backup and Restore
Backup
Backup all documents:
mdxdb backup backup.tar.gzBackup specific type:
mdxdb backup backup.tar.gz --type BlogPostRestore
Restore from backup:
mdxdb restore backup.tar.gzRestore specific documents:
mdxdb restore backup.tar.gz --ids /blog/post-1,/blog/post-2Monitoring
Health Check
Check system health:
mdxe healthVersion Info
Check version:
mdxe versionUsage Stats
View usage statistics:
mdxe statsProgrammatic Management
Manage via TypeScript API:
import { list, search, get, set, deleteDoc, pull, publish } from 'mdxdb'
// List documents
const posts = await list({ type: 'BlogPost' })
// Search
const results = await search('TypeScript')
// Get document
const doc = await get('/blog/my-post')
// Update document
await set('/blog/my-post', {
...doc,
data: { ...doc.data, author: 'Jane Doe' }
})
// Sync
const pullResult = await pull({ type: 'BlogPost' })
const publishResult = await publish({ type: 'BlogPost' })