.do
Cli

Airtable CLI

Command-line interface reference for airtable.do - Airtable integration and automation

Airtable CLI

Airtable integration and automation

Installation

# Install globally
npm install -g do

# Or use via npx
npx do --version

Quick Start

# Basic usage
do integrations airtable call /data

Commands

Main Command

do integrations airtable call /data

Description: Airtable integration and automation

Usage:

do airtable [options]

Options

Global Options

  • --help, -h - Show help
  • --version, -v - Show version
  • --verbose - Verbose output
  • --quiet, -q - Quiet mode
  • --json - JSON output
  • --config <file> - Config file path

Command-Specific Options

do airtable \
  --option1=value1 \
  --option2=value2 \
  --verbose

Usage Examples

Basic Example

# Simple usage
do integrations airtable call /data

With Options

# With configuration
do integrations airtable call /data --verbose --json

Interactive Mode

# Interactive prompts
do airtable --interactive

Batch Operations

# Process multiple items
do airtable --batch items.json

Pipeline Integration

# Use with pipes
cat data.json | do airtable --stdin | jq '.'

Configuration

Config File

Create .doconfig in your project:

{
  "airtable": {
    "option1": "value1",
    "option2": "value2"
  }
}

Environment Variables

export DO_AIRTABLE_OPTION1=value1
export DO_AIRTABLE_OPTION2=value2

do integrations airtable call /data

Output Formats

Default Output

do integrations airtable call /data
# ✓ Operation completed
# Result: ...

JSON Output

do integrations airtable call /data --json
# {
#   "success": true,
#   "result": { ... }
# }

Verbose Output

do integrations airtable call /data --verbose
# → Starting operation...
# → Processing...
# → Completed in 1.2s

Scripting

Bash Scripts

#!/bin/bash

# Check if successful
if do integrations airtable call /data; then
  echo "Success!"
else
  echo "Failed!"
  exit 1
fi

CI/CD Integration

# GitHub Actions
- name: Run Airtable
  run: |
    do integrations airtable call /data \
      --config prod.json \
      --quiet

Error Handling

Exit Codes

  • 0 - Success
  • 1 - General error
  • 2 - Invalid arguments
  • 3 - Timeout
  • 4 - Not found

Error Messages

# Capture errors
do integrations airtable call /data 2>errors.log

# Handle errors
if ! do integrations airtable call /data; then
  echo "Error occurred, check errors.log"
  exit 1
fi

Debugging

# Debug mode
DEBUG=* do integrations airtable call /data

# Dry run
do integrations airtable call /data --dry-run

# Verbose + timing
time do integrations airtable call /data --verbose

Best Practices

  1. Use Config Files - Store configuration in .doconfig
  2. Environment Variables - Use for sensitive data
  3. Error Handling - Check exit codes in scripts
  4. JSON Output - Use --json for parsing results
  5. Verbose Mode - Use --verbose for debugging