tf_code/packages/tfcode/scripts/quickstart.cjs
2026-03-24 14:01:32 +11:00

66 lines
5.3 KiB
JavaScript

#!/usr/bin/env node
console.log(`
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
tfcode - Quick Start Guide
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Welcome to tfcode! Follow these steps to get started:
┌─────────────────────────────────────────────────────────────┐
│ STEP 1: Set Your Credentials │
├─────────────────────────────────────────────────────────────┤
│ │
│ export TF_WORKSPACE_ID="your-workspace-id" │
│ export TF_API_KEY="your-api-key" │
│ export TF_REGION="au" │
│ │
│ Regions: au (Australia), eu (Europe), us (United States) │
│ │
└─────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────┐
│ STEP 2: Validate Connection │
├─────────────────────────────────────────────────────────────┤
│ │
│ tfcode validate │
│ │
│ This checks your credentials are correct. │
│ │
└─────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────┐
│ STEP 3: Sync Your Tools │
├─────────────────────────────────────────────────────────────┤
│ │
│ tfcode sync │
│ │
│ This downloads your tools from ToothFairyAI. │
│ │
└─────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────┐
│ STEP 4: Start Coding! │
├─────────────────────────────────────────────────────────────┤
│ │
│ tfcode │
│ │
│ Start the AI coding assistant. │
│ │
└─────────────────────────────────────────────────────────────┘
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Useful Commands:
tfcode validate Test your credentials
tfcode sync Sync tools from workspace
tfcode tools list Show all your tools
tfcode Start coding assistant
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Need help? https://toothfairyai.com/developers/tfcode
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
`);