> ## Documentation Index
> Fetch the complete documentation index at: https://60db.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

> Practical examples for using 60db CLI

# Examples

## Authentication & Setup

```bash theme={null}
# Login to get token
60db auth:login --email your@email.com --password yourpassword

# Check session
60db auth:session

# Or manually set API key
60db config --set apiKey=your_token_here
```

## AI Chat Completion

```bash theme={null}
# Simple chat
60db ai:chat --prompt "Explain quantum computing"

# With system prompt for specific behavior
60db ai:chat --prompt "Review this code" --system "You are an expert code reviewer. Be concise and actionable."

# Higher temperature for creative responses
60db ai:chat --prompt "Write a poem about AI" --temperature 0.9
```

## TTS - Generate Speech

```bash theme={null}
# Generate speech from text
60db tts:synthesize --text "Hello, this is devendra" --voice-id "1a8c6331-c79b-47d3-9893-09160a245a3e"

# List available voices first
60db tts:voices

# Save to specific file
60db tts:synthesize --text "Welcome to our service" --voice-id "abc123" --output welcome.mp3
```

## STT - Transcribe Audio

```bash theme={null}
# Transcribe audio file
60db stt:transcribe --file meeting.wav

# Transcribe Hindi audio
60db stt:transcribe --file recording.wav --language hi

# List available languages
60db stt:languages
```

## AI Meeting Notes Analysis

```bash theme={null}
# Analyze meeting transcript
60db ai:meeting --transcript "John: We need to finish by Friday. Jane: I'll handle frontend." --title "Sprint Planning"

# Get structured JSON output
60db --json ai:meeting --transcript "$TRANSCRIPT" > meeting-notes.json
```

## Add Credits to Multiple Users

```bash theme={null}
for user_id in 123 456 789; do
  60db credits:add --user-id $user_id --amount 10 --description "Monthly bonus"
done
```

## Export User Data to JSON

```bash theme={null}
60db --json users --list > users.json
```

## Monitor Transactions in Real-Time

```bash theme={null}
watch -n 5 '60db --json billing:transactions --limit 5'
```
