Skip to content

Releases: voicetel/cli

VoiceTel CLI v0.2.6

20 May 22:22

Choose a tag to compare

VoiceTel CLI v0.2.5

20 May 22:07

Choose a tag to compare

VoiceTel CLI v0.2.4

20 May 22:02

Choose a tag to compare

VoiceTel CLI v0.2.3

20 May 21:39

Choose a tag to compare

VoiceTel CLI v0.2.2

20 May 21:33

Choose a tag to compare

VoiceTel CLI v0.2.1

20 May 21:21

Choose a tag to compare

VoiceTel CLI v0.2.0

20 May 21:15

Choose a tag to compare

v0.2.0 — One-shot mode, env-var auth, cross-platform builds

Major DX upgrade for the VoiceTel CLI. Three additions, none of them break the v0.1.0 surface.

1. -x '<command>' — one-shot, non-interactive mode

Run a single command and exit. Useful for shell pipelines, cron jobs, and ad-hoc scripting — no REPL, no banner, no history file touched.

# List account numbers — same as typing `account numbers` in the REPL.
voicetel-cli -x 'account numbers'

# Pipe JSON into jq:
voicetel-cli -x 'account get' | jq .cash

# CI script with env-var auth:
export VOICETEL_USERNAME=1000000001
export VOICETEL_PASSWORD=hunter2
voicetel-cli -x 'numbers list'

Exit code is 0 on success, 1 on any error (auth failure, rate-limit hit, command typo). Ctrl-C cancels the in-flight request.

2. Environment variables

The CLI now honors four env vars. Precedence is flag > env > config.

Variable Purpose
VOICETEL_API_KEY 32-hex bearer token — installed directly; no login round-trip.
VOICETEL_USERNAME Numeric account id. Paired with VOICETEL_PASSWORD, triggers a login at startup.
VOICETEL_PASSWORD Password — paired with VOICETEL_USERNAME; never persisted to ~/.voicetel/config.toml.
VOICETEL_BASE_URL Override the API endpoint (rare — staging / sandbox builds).

Env-driven runs are intentionally ephemeral — the exchanged key from VOICETEL_USERNAME + VOICETEL_PASSWORD is installed on the client but not written to disk.

3. Makefile — pure-Go cross-compile to 9 platforms

New Makefile produces voicetel-cli binaries with CGO_ENABLED=0 (no per-target C toolchains needed):

make build       # local platform → ./bin/voicetel-cli
make build-all   # 9 platforms → ./dist/voicetel-cli_<version>_<os>-<arch>/
make release     # build-all + per-platform .tar.gz / .zip archives
make test        # go test ./...
make install     # → $GOPATH/bin/voicetel-cli

Cross-compile matrix:

  • macOS: darwin/amd64, darwin/arm64
  • Linux: linux/amd64, linux/arm64, linux/386, linux/arm
  • Windows: windows/amd64, windows/arm64
  • FreeBSD: freebsd/amd64

Pre-built binaries

All 9 archives are attached to this release. Pick your platform:

# Linux amd64 example:
curl -sL https://github.com/voicetel/cli/releases/download/v0.2.0/voicetel-cli_0.2.0_linux-amd64.tar.gz | tar xz
sudo mv voicetel-cli_0.2.0_linux-amd64/voicetel-cli /usr/local/bin/
voicetel-cli --version

Backward compatibility

  • All v0.1.0 flags (--api-key, --base-url, --version) still work identically.
  • The REPL surface is unchanged — every existing command, completion, and help topic still works.
  • Config format (~/.voicetel/config.toml) is unchanged.

Server compatibility

Tracks VoiceTel REST API v2.2.10. No spec-level changes; this release is CLI-side only.

v0.1.0

20 May 15:21

Choose a tag to compare

v0.1.0 — VoiceTel CLI initial release

Interactive REPL for the VoiceTel REST API v2.2.10. Built on top of voicetel/go-sdk.

Features

  • Commands map to all 10 resource groups of the v2.2.10 REST API
  • Auth via Bearer token obtained from the API key endpoint
  • Interactive REPL + non-interactive scriptable mode

Install

See the README for build/install instructions.

Docs