Fedify CLI Specification Guide
Complete reference to the Fedify CLI toolchain for building, testing, and debugging ActivityPub-enabled federated server applications. Essential tools for fediverse development and integration.
📋 Executive Summary
Purpose and Overview
The Fedify CLI (`fedify`) is a comprehensive command-line toolchain designed for building, testing, and debugging ActivityPub-enabled federated server applications. While primarily designed for developers using the Fedify framework, it provides universal utilities that work with any ActivityPub-enabled server.
Core Functionality:
- Project Initialization: Scaffolding new Fedify projects
- ActivityPub Debugging: Object and actor inspection
- Development Testing: Ephemeral server creation
- Network Utilities: Tunneling and WebFinger discovery
- Instance Analysis: NodeInfo visualization
Key Components
Project Generator
Interactive project scaffolding with multiple runtime options
Object Inspector
Comprehensive ActivityPub object lookup and analysis
Ephemeral Server
Temporary ActivityPub server for testing federation
Network Tools
Secure tunneling and WebFinger discovery utilities
🚀 Installation and Setup
Prerequisites
- Node.js 18.0 or later
- npm, yarn, pnpm, or bun package manager
- Git for version control
- Optional: Docker for containerized development
Installation Methods
Global Installation
npm install -g @fedify/cli
Project-specific
npx @fedify/cli [command]
Package Manager
yarn global add @fedify/cli
pnpm add -g @fedify/cli
⚡ Command Reference
Project Management
fedify init
Initialize a new Fedify project with interactive setup
fedify dev
Start development server with hot reloading
ActivityPub Debugging
fedify lookup
Look up ActivityPub objects, actors, and collections
fedify webfinger
Perform WebFinger resource discovery
Testing & Development
fedify ephemeral
Create temporary ActivityPub server for testing
fedify tunnel
Create secure tunnel to local development server
Instance Analysis
fedify nodeinfo
Analyze and visualize NodeInfo data
fedify federation
Test federation capabilities and connectivity
🏗️ Project Scaffolding
Runtime Options
Framework Integration
🔧 Development Workflow
1. Project Initialization
fedify init my-activitypub-server
cd my-activitypub-server
Creates a new project with interactive configuration
2. Development Server
fedify dev --tunnel
Starts development server with public tunnel for federation testing
3. Testing Federation
fedify ephemeral --actors 5 --activities 10
Creates temporary test environment for federation testing
4. Debugging Objects
fedify lookup https://mastodon.social/@user
Inspects ActivityPub objects and actors across the fediverse
🔗 Integration with ActivityPub MCP Server
Development Tools
The Fedify CLI provides essential development tools for building and testing ActivityPub applications that integrate with our MCP server.
- Object inspection for debugging MCP tool outputs
- Federation testing for server-to-server communication
- WebFinger discovery for actor resolution
- Ephemeral servers for testing LLM-generated activities
LLM Development Workflow
Streamlined workflow for developing LLM applications with ActivityPub integration.
- Rapid prototyping with scaffolded projects
- Real-time testing with tunneled development servers
- Automated federation testing for AI-generated content
- Debugging tools for ActivityPub object validation
📚 Additional Resources
Official Fedify CLI Documentation
Complete documentation and API reference for the Fedify CLI
Fedify Framework
The complete Fedify framework for ActivityPub development
ActivityPub Implementation
How our MCP server implements ActivityPub protocols
Development Architecture
Technical architecture and development patterns