Skip to main content

CLI Overview

The ARM CLI (api-response-manager) is a powerful command-line tool for managing tunnels, webhooks, and projects.

Installation

npm install -g api-response-manager

Global Options

These options work with all commands:

OptionDescription
--version, -vShow version number
--help, -hShow help
--jsonOutput in JSON format
--quiet, -qSuppress non-essential output

Commands

Authentication

CommandDescription
arm loginAuthenticate with TunnelAPI
arm logoutSign out and clear credentials
arm whoamiShow current user info
arm statusCheck connection status

Tunnels

CommandDescription
arm tunnel <port>Create a tunnel to local port
arm tunnel listList active tunnels
arm tunnel stop <id>Stop a tunnel

Webhooks

CommandDescription
arm webhook createCreate a webhook endpoint
arm webhook listList webhook endpoints
arm webhook delete <id>Delete a webhook
arm webhook logs <id>View webhook request logs

Projects

CommandDescription
arm project create <name>Create a new project
arm project listList all projects
arm project delete <id>Delete a project

Proxy

CommandDescription
arm proxy startStart the API capture proxy
arm proxy stopStop the proxy

Configuration

The CLI stores configuration in ~/.armrc:

{
"token": "your-jwt-token",
"apiUrl": "https://api.tunnelapi.in",
"tunnelUrl": "wss://tunnel.tunnelapi.in"
}

Custom API URL

For self-hosted instances:

arm config set apiUrl https://api.your-domain.com
arm config set tunnelUrl wss://tunnel.your-domain.com

Examples

Basic Tunnel

# Expose port 3000
arm tunnel 3000

# With custom subdomain
arm tunnel 3000 --subdomain myapp

# With authentication required
arm tunnel 3000 --auth

# With rate limiting
arm tunnel 3000 --rate-limit 100

Webhook with Forwarding

# Create and forward to local server
arm webhook create --forward http://localhost:4000/webhook

# Forward to a tunnel
arm webhook create --forward-tunnel my-tunnel

Project Management

# Create project
arm project create "Payment API Testing"

# List projects
arm project list

# Start proxy for project
arm proxy start --project payment-api-testing

Exit Codes

CodeMeaning
0Success
1General error
2Authentication required
3Network error
4Invalid arguments

Environment Variables

VariableDescription
ARM_TOKENJWT token (overrides stored token)
ARM_API_URLAPI server URL
ARM_TUNNEL_URLTunnel server URL
ARM_NO_COLORDisable colored output

Next Steps