Releases: voicetel/cli
VoiceTel CLI v0.2.6
Full Changelog: v0.2.5...v0.2.6
VoiceTel CLI v0.2.5
Full Changelog: v0.2.4...v0.2.5
VoiceTel CLI v0.2.4
Full Changelog: v0.2.3...v0.2.4
VoiceTel CLI v0.2.3
Full Changelog: v0.2.2...v0.2.3
VoiceTel CLI v0.2.2
Full Changelog: v0.2.1...v0.2.2
VoiceTel CLI v0.2.1
Full Changelog: v0.2.0...v0.2.1
VoiceTel CLI v0.2.0
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-cliCross-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 --versionBackward compatibility
- All v0.1.0 flags (
--api-key,--base-url,--version) still work identically. - The REPL surface is unchanged — every existing command, completion, and
helptopic 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
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.