From c17e696a21e7d4f7f63b223ee85cdf1ad582bf48 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 13 May 2026 14:46:52 +0000 Subject: [PATCH] feat: add global --config flag to override netlify.toml location The code in base-command.ts was already prepared to handle a --config flag (at line 627), but the option was never actually defined. This caused "unknown option '--config'" errors when users tried to specify a custom config file path. This is useful when working in subdirectories where you want to ignore parent directory netlify.toml files and use a local config instead. https://claude.ai/code/session_017b75UnpDTsU6M9dQhokQr1 --- src/commands/base-command.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/base-command.ts b/src/commands/base-command.ts index d3b40a27b6e..938074e834a 100644 --- a/src/commands/base-command.ts +++ b/src/commands/base-command.ts @@ -263,6 +263,7 @@ export default class BaseCommand extends Command { .default(process.env.NETLIFY_PROXY_CERTIFICATE_FILENAME) .hideHelp(true), ) + .option('--config ', 'Path to the Netlify configuration file (default: netlify.toml in current or parent directories)') .option('--debug', 'Print debugging information') if (!COMMANDS_WITHOUT_WORKSPACE_OPTIONS.has(commandName)) {