From cd9567ecd879a807e305fcd820de4c2629fbf04d Mon Sep 17 00:00:00 2001 From: Alex Kubacki Date: Mon, 17 Aug 2026 14:40:26 -0600 Subject: [PATCH 1/2] APTIBLE_DISABLE_TELEMETRY --- README.md | 8 ++++++++ lib/aptible/cli/helpers/telemetry.rb | 2 ++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 304b7b98..944ab7ce 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,14 @@ If you need to parse the output in another program, set the `APTIBLE_OUTPUT_FORM The default format is `text`. +### Telemetry + +The Aptible CLI reports anonymous usage telemetry to help improve the product. To opt out, set the `APTIBLE_DISABLE_TELEMETRY` environment variable to any non-empty value: + +```bash +export APTIBLE_DISABLE_TELEMETRY=1 +``` + ## Contributing 1. Fork the project. diff --git a/lib/aptible/cli/helpers/telemetry.rb b/lib/aptible/cli/helpers/telemetry.rb index 5457c344..b1b7c086 100644 --- a/lib/aptible/cli/helpers/telemetry.rb +++ b/lib/aptible/cli/helpers/telemetry.rb @@ -7,6 +7,8 @@ module CLI module Helpers module Telemetry def telemetry(cmd, options = {}) + return if ENV['APTIBLE_DISABLE_TELEMETRY'] + token_hash = decode_token format = Renderer.format format = 'text' if format.nil? From 82d61d478f33c3e05c071203cb0b450fbbbc50a4 Mon Sep 17 00:00:00 2001 From: Alex Kubacki Date: Mon, 17 Aug 2026 14:41:21 -0600 Subject: [PATCH 2/2] Bump --- Gemfile.lock | 12 ++++++------ lib/aptible/cli/version.rb | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 20ad77da..d6278dbf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - aptible-cli (0.26.8) + aptible-cli (0.26.9) activesupport (>= 4.0, < 6.0) aptible-api (~> 1.12) aptible-auth (~> 1.4) @@ -35,7 +35,7 @@ GEM tzinfo (~> 1.1) addressable (2.8.0) public_suffix (>= 2.0.2, < 5.0) - aptible-api (1.12.2) + aptible-api (1.12.3) aptible-auth aptible-resource gem_config @@ -71,7 +71,7 @@ GEM aws-sigv4 (1.2.4) aws-eventstream (~> 1, >= 1.0.2) bigdecimal (1.3.5) - cbor (0.5.10.1) + cbor (0.5.10.3) chronic_duration (0.10.6) numerizer (~> 0.1.1) climate_control (0.0.3) @@ -150,9 +150,9 @@ GEM ruby-progressbar (~> 1.7) unicode-display_width (~> 1.0, >= 1.0.1) ruby-progressbar (1.13.0) - snaky_hash (2.0.3) + snaky_hash (2.0.7) hashie (>= 0.1.0, < 6) - version_gem (>= 1.1.8, < 3) + version_gem (~> 1.1, >= 1.1.14) stripe (4.24.0) faraday (~> 0.13) net-http-persistent (~> 3.0) @@ -168,7 +168,7 @@ GEM thread_safe (~> 0.1) unicode-display_width (1.8.0) uri_template (0.7.0) - version_gem (1.1.9) + version_gem (1.1.15) webmock (3.16.2) addressable (>= 2.8.0) crack (>= 0.3.2) diff --git a/lib/aptible/cli/version.rb b/lib/aptible/cli/version.rb index 213bcfcb..867a4ddc 100644 --- a/lib/aptible/cli/version.rb +++ b/lib/aptible/cli/version.rb @@ -1,5 +1,5 @@ module Aptible module CLI - VERSION = '0.26.8'.freeze + VERSION = '0.26.9'.freeze end end