UNPKG

spaps

Version:

Sweet Potato Authentication & Payment Service CLI - Docker Compose orchestrator for local Python/FastAPI SPAPS server with built-in admin middleware

43 lines (39 loc) 1.69 kB
const chalk = require('chalk'); function showQuickHelp() { const output = [ '', chalk.yellow('🍠 SPAPS Quick Reference'), '', chalk.green('Common Commands:'), ` npx spaps local ${chalk.gray('# Start local server')}`, ` npx spaps init ${chalk.gray('# Initialize in project')}`, ` npx spaps create <name> ${chalk.gray('# Scaffold a SPAPS starter project')}`, ` npx spaps fixtures apply ${chalk.gray('# Generate repo-local auth fixtures')}`, ` npx spaps fixtures storage-state ${chalk.gray('# Export one persona artifact')}`, ` npx spaps types ${chalk.gray('# Generate types (v0.4.0)')}`, '', chalk.green('Local Development:'), ` npx spaps local --port 3001 ${chalk.gray('# Custom port')}`, ` npx spaps local --open ${chalk.gray('# Open browser')}`, ` npx spaps local --json ${chalk.gray('# JSON output')}`, '', chalk.green('SDK Usage:'), ` npm install spaps-sdk ${chalk.gray('# Install SDK')}`, '', chalk.gray(' import { SPAPSClient } from "spaps-sdk"'), chalk.gray(' const spaps = new SPAPSClient()'), chalk.gray(' await spaps.login(email, password)'), '', chalk.green('Debugging:'), ` curl http://localhost:3301/health ${chalk.gray('# Check server')}`, ` npx spaps help --interactive ${chalk.gray('# Interactive help')}`, '', chalk.blue('📚 Docs: https://sweetpotato.dev'), chalk.blue('💬 Discord: https://discord.gg/sweetpotato'), '', ].join('\n'); process.stdout.write(`${output}\n`); } module.exports = { showQuickHelp, };