From 32587895c33d94947cb36eb3ea26ba6151a2bded Mon Sep 17 00:00:00 2001 From: Eric Vogt Date: Wed, 13 Aug 2025 20:48:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/home/eric/?= =?UTF-8?q?IdeaProjects/claude-flow/docs/DEPLOYMENT.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/1755110885.json | 1 + .claude/checkpoints/1755110891.json | 1 + docs/DEPLOYMENT.md | 150 ++++++++++------------------ 3 files changed, 54 insertions(+), 98 deletions(-) create mode 100644 .claude/checkpoints/1755110885.json create mode 100644 .claude/checkpoints/1755110891.json diff --git a/.claude/checkpoints/1755110885.json b/.claude/checkpoints/1755110885.json new file mode 100644 index 0000000000..25b35467c1 --- /dev/null +++ b/.claude/checkpoints/1755110885.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250813-204804", "file": "/home/eric/IdeaProjects/claude-flow/docs/DEPLOYMENT.md", "timestamp": "2025-08-13T18:48:05Z", "type": "pre-edit", "original_branch": "fix_readme-and-documentation"} diff --git a/.claude/checkpoints/1755110891.json b/.claude/checkpoints/1755110891.json new file mode 100644 index 0000000000..dd7179647c --- /dev/null +++ b/.claude/checkpoints/1755110891.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250813-204811", "file": "/home/eric/IdeaProjects/claude-flow/docs/DEPLOYMENT.md", "timestamp": "2025-08-13T18:48:11Z", "type": "post-edit", "branch": "fix_readme-and-documentation", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/task-1755110569.json | 1 + docs/DEPLOYMENT.md | 13 +++++++------ 4 files changed, 12 insertions(+), 10 deletions(-) "} diff --git a/docs/DEPLOYMENT.md b/docs/DEPLOYMENT.md index 1c4bdb8fb6..1f2db68528 100644 --- a/docs/DEPLOYMENT.md +++ b/docs/DEPLOYMENT.md @@ -19,15 +19,20 @@ ## Quick Start -### One-Line Installation +### Production Installation ```bash -# Using npm (recommended) -npx claude-flow@alpha init --force && npx claude-flow@alpha swarm "hello world" - -# Global installation +# Install from npm registry npm install -g claude-flow@alpha -claude-flow init --force + +# Verify installation +npx claude-flow@alpha --version + +# Initialize configuration +npx claude-flow@alpha init --force + +# Test installation +npx claude-flow@alpha swarm "test deployment" --agents 3 ``` ### Prerequisites Check @@ -39,105 +44,54 @@ node --version # Check npm version (requires ≥9.0.0) npm --version -# Install Claude Code (required) -npm install -g @anthropic-ai/claude-code +# Check system resources +free -h # Memory check +df -h # Disk space check -# Verify installation -claude-flow --version -``` - ---- - -## Installation Methods - -### Method 1: NPX (Recommended) - -```bash -# Always uses latest version -npx claude-flow@alpha [command] - -# Example commands -npx claude-flow@alpha init -npx claude-flow@alpha swarm "build API" -npx claude-flow@alpha hive-mind spawn "project" -``` - -### Method 2: Global Installation - -```bash -# Install globally -npm install -g claude-flow@alpha - -# Verify installation -claude-flow --version - -# Initialize configuration -claude-flow init --force -``` - -### Method 3: Local Project Installation - -```bash -# Create project directory -mkdir my-project && cd my-project - -# Initialize package.json -npm init -y - -# Install as dependency -npm install claude-flow@alpha - -# Add to package.json scripts -{ - "scripts": { - "cf": "claude-flow", - "swarm": "claude-flow swarm", - "hive": "claude-flow hive-mind" - } -} - -# Run via npm scripts -npm run cf -- --help -``` - -### Method 4: From Source - -```bash -# Clone repository -git clone https://github.com/ruvnet/claude-flow.git -cd claude-flow - -# Install dependencies -npm install - -# Build from source -npm run build - -# Link globally -npm link - -# Verify -claude-flow --version -``` - -### Method 5: Docker Container - -```bash -# Pull official image -docker pull claudeflow/claude-flow:alpha - -# Run container -docker run -it \ - -e CLAUDE_API_KEY=$CLAUDE_API_KEY \ - -v $(pwd):/workspace \ - claudeflow/claude-flow:alpha \ - swarm "build application" +# Install required tools +apt-get update && apt-get install -y curl wget jq ``` --- ## System Requirements +### Production Requirements + +| Component | Minimum | Recommended | Enterprise | +|-----------|---------|-------------|------------| +| Node.js | v20.0.0 | v20 LTS | v20 LTS | +| RAM | 4 GB | 8 GB | 16 GB | +| CPU | 2 cores | 4 cores | 8+ cores | +| Disk Space | 2 GB | 10 GB | 50 GB | +| Network | 100 Mbps | 1 Gbps | 10 Gbps | +| Uptime SLA | 99% | 99.9% | 99.99% | + +### Operating System Support + +- **Linux**: Ubuntu 20.04+, CentOS 8+, RHEL 8+, Amazon Linux 2 +- **Docker**: Alpine 3.18+, Ubuntu 22.04+ +- **Kubernetes**: 1.24+ +- **Cloud**: AWS, GCP, Azure, DigitalOcean + +### Network Requirements + +```bash +# Required ports +3000/tcp # Main API server +8080/tcp # MCP server +5432/tcp # PostgreSQL (if used) +6379/tcp # Redis (if used) +9090/tcp # Prometheus metrics +3001/tcp # Grafana dashboard + +# Outbound connections +https://api.anthropic.com # Claude API +https://api.openai.com # OpenAI API (optional) +https://registry.npmjs.org # Package registry +https://github.com # Repository access +``` + ### Minimum Requirements | Component | Minimum | Recommended |