From 6467903e513c300e8409ab908441f45d21207d96 Mon Sep 17 00:00:00 2001 From: mpjunior92 Date: Wed, 20 May 2026 18:23:34 -0300 Subject: [PATCH] fix(cli): spread commonFlags on billing cancel (RND-567) The `billing cancel` command was cherry-picking only `private-key` and `verbose` from commonFlags, leaving `--environment`, `--rpc-url`, `--max-fee-per-gas`, `--max-priority-fee`, and `--nonce` undeclared. This made the command unusable in CI/scripted flows because there was no non-interactive way to pick the environment. Spread `...commonFlags` like the other billing subcommands (status, subscribe, top-up, list-cards) so all common flags are accepted; keep `product` and `force` flags on top. --- packages/cli/src/commands/billing/cancel.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/cli/src/commands/billing/cancel.ts b/packages/cli/src/commands/billing/cancel.ts index c81276ee..1bc0b31b 100644 --- a/packages/cli/src/commands/billing/cancel.ts +++ b/packages/cli/src/commands/billing/cancel.ts @@ -10,8 +10,7 @@ export default class BillingCancel extends Command { static description = "Cancel subscription"; static flags = { - "private-key": commonFlags["private-key"], - verbose: commonFlags.verbose, + ...commonFlags, product: Flags.string({ required: false, description: "Product ID",