From ddd42d00639927ca7573cc3517a3d66666c7056c Mon Sep 17 00:00:00 2001 From: uroma Date: Thu, 22 Jan 2026 15:59:18 +0000 Subject: [PATCH] Add one-line command options for all scripts Added comprehensive one-line installation options for all scripts: Quick One-Liners Section (top of README): - SuperCharge installer one-liner - Claude Code + Z.AI installer one-liner - Manual instructions one-liner Detailed Installation Guide: - SuperCharge Installer with all options - Claude Code + Z.AI Installer with all options - All scripts support argument passing via bash -s -- Available Scripts Reference: - supercharge.sh: Main installer with --skip-deps, --dev-mode - install-claude-code.sh: Claude Code + Z.AI with --auto, --manual, --skip-install Total: 16 one-liner command examples Features: - curl | bash for direct execution - bash -s -- for argument passing - All script options documented - Clear tables showing options and descriptions --- README.md | 122 ++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 104 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 29ef6b0..f9bf56f 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,19 @@ [![License](https://img.shields.io/badge/License-MIT-purple)](LICENSE) [![Gitea](https://img.shields.io/badge/Platform-Gitea-red)](https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade) +## ⚡ Quick One-Liners + +```bash +# 🎯 SuperCharge Claude Code (all customizations) +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/supercharge.sh | bash + +# 🔧 Install Claude Code + Z.AI API +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/install-claude-code.sh | bash + +# 📖 Show manual instructions (no installation) +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/install-claude-code.sh | bash -s -- --manual +``` + --- ## ⚡ Why SuperCharge Claude Code? @@ -76,16 +89,25 @@ This comprehensive customization package transforms your Claude Code installatio --- -## 🚀 Quick Start (2 Minutes) +## 📖 Detailed Installation Guide -### One-Line Installation +### 🎯 SuperCharge Installer (Main Script) +#### One-Line Installation ```bash curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/supercharge.sh | bash ``` -### Manual Installation +#### One-Line with Options +```bash +# Skip dependency installation +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/supercharge.sh | bash -s -- --skip-deps +# Development mode (verbose output) +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/supercharge.sh | bash -s -- --dev-mode +``` + +#### Manual Installation ```bash # Clone the repository git clone https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade.git @@ -93,21 +115,94 @@ cd SuperCharged-Claude-Code-Upgrade # Run the supercharge installer ./supercharge.sh + +# With options +./supercharge.sh --skip-deps +./supercharge.sh --dev-mode ``` -### Installation Options +### 🔧 Claude Code + Z.AI Installer (Optional) +#### One-Line Installation ```bash -# Skip dependency installation -./supercharge.sh --skip-deps +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/install-claude-code.sh | bash +``` -# Development mode (verbose output) -./supercharge.sh --dev-mode +#### One-Line with Options +```bash +# Automatic installation (prompts for API key) +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/install-claude-code.sh | bash -s -- --auto + +# Manual instructions only (no installation) +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/install-claude-code.sh | bash -s -- --manual + +# Configure API only (skip Claude Code installation) +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/install-claude-code.sh | bash -s -- --skip-install +``` + +#### Manual Installation +```bash +# Clone the repository +git clone https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade.git +cd SuperCharged-Claude-Code-Upgrade + +# Run the Claude Code installer +./install-claude-code.sh --auto + +# Other options +./install-claude-code.sh --manual # Show instructions only +./install-claude-code.sh --skip-install # Configure API only ``` --- -## 🔧 Claude Code Installation (Optional) +## 📋 Available Scripts & Options + +### supercharge.sh - Main SuperCharge Installer +Transforms existing Claude Code with all customizations. + +| Option | Description | +|--------|-------------| +| (default) | Interactive installation with all prompts | +| `--skip-deps` | Skip dependency installation checks | +| `--dev-mode` | Enable verbose output for debugging | + +**One-liners:** +```bash +# Full installation +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/supercharge.sh | bash + +# Skip dependencies +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/supercharge.sh | bash -s -- --skip-deps + +# Verbose mode +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/supercharge.sh | bash -s -- --dev-mode +``` + +### install-claude-code.sh - Claude Code + Z.AI Installer +Installs Claude Code and configures Z.AI GLM models. + +| Option | Description | +|--------|-------------| +| `--auto` (default) | Automated installation with API key prompt | +| `--manual` | Show manual installation steps only | +| `--skip-install` | Skip Claude Code install, configure API only | + +**One-liners:** +```bash +# Auto install with API prompt +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/install-claude-code.sh | bash + +# Show manual instructions +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/install-claude-code.sh | bash -s -- --manual + +# Configure API only +curl -fsSL https://github.rommark.dev/admin/SuperCharged-Claude-Code-Upgrade/raw/main/install-claude-code.sh | bash -s -- --skip-install +``` + +--- + +## 🔧 Claude Code Installation Details If you don't have Claude Code installed yet, we've got you covered with **Z.AI API support**. @@ -121,15 +216,6 @@ If you don't have Claude Code installed yet, we've got you covered with **Z.AI A > [!TIP] > **🎁 Grab 10% OFF Token for z.ai coding plan**: [https://z.ai/subscribe?ic=R0K78RJKNW](https://z.ai/subscribe?ic=R0K78RJKNW) -### Automated Claude Code + Z.AI Installation - -```bash -# Install Claude Code with Z.AI API (prompts for API key) -./install-claude-code.sh --auto - -# Get your API key from: https://docs.z.ai/devpack/tool/claude -``` - ### Manual Claude Code Installation ```bash