rfctl - RecordForm CLI#

rfctl is a command-line interface for interacting with the RecordForm CRM API.

It uses the RecordForm Go SDK to communicate with the API server.

Quick Start#

# Login to the CRM
rfctl login --email admin@recordform.com --password "your-password"

# List organizations
rfctl orgs list

# Get a specific deal
rfctl deals get 1

# Check current user
rfctl me

Global Flags#

FlagDescription
--serverAPI server URL (default: http://localhost:8080)

Available Commands#

  • login - Authenticate with the CRM API
  • logout - Clear the stored session
  • me - Show the current authenticated user
  • orgs - Manage organizations
  • contacts - Manage contacts
  • deals - Manage deals
  • activities - Manage activities
  • stages - List and view pipeline stages
  • users - List and view users

Installation#

Build the CLI from source:

cd cmd/rfctl
go build -o rfctl .

Configuration#

The CLI stores session cookies and configuration in ~/.rfctl/. The configuration file contains:

  • Server URL
  • Email address (for convenience)
  • Session cookies for authentication