From 0f7b0b67433ac2b87d48c243f85613c60e5f4a31 Mon Sep 17 00:00:00 2001 From: Rob Zolkos Date: Thu, 11 Dec 2025 16:16:18 -0500 Subject: [PATCH] Fix misleading --account option documentation The --account option expects the account slug (numeric value like 6102600) from identity show, not the UUID-style account ID. Users were getting 404 errors when using the ID instead of the slug. Updated help text and README to say "Account slug" instead of "Account ID" to prevent confusion. --- README.md | 2 +- lib/fizzy/cli.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dc20fe9..20ee138 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ fizzy [options] | Option | Environment Variable | Description | |--------|---------------------|-------------| | `--token` | `FIZZY_TOKEN` | API access token | -| `--account` | `FIZZY_ACCOUNT` | Account ID | +| `--account` | `FIZZY_ACCOUNT` | Account slug (from `fizzy identity show`) | | `--format` | | Output format: `json` (default), `text` | | `--quiet` | | Suppress non-essential output | | `--verbose` | | Show request/response details | diff --git a/lib/fizzy/cli.rb b/lib/fizzy/cli.rb index 0760ef6..33807e2 100644 --- a/lib/fizzy/cli.rb +++ b/lib/fizzy/cli.rb @@ -5,7 +5,7 @@ def self.exit_on_failure? end class_option :token, type: :string, desc: "API access token (or FIZZY_TOKEN env var)" - class_option :account, type: :string, desc: "Account ID (or FIZZY_ACCOUNT env var)" + class_option :account, type: :string, desc: "Account slug (or FIZZY_ACCOUNT env var)" class_option :api_url, type: :string, desc: "API base URL (default: https://app.fizzy.do)" class_option :format, type: :string, default: "json", desc: "Output format: json, text" class_option :quiet, type: :boolean, default: false, desc: "Suppress non-essential output"