diff --git a/packages/astro/src/cli/index.ts b/packages/astro/src/cli/index.ts index c8143cb8a7a6..8dc718e8115f 100644 --- a/packages/astro/src/cli/index.ts +++ b/packages/astro/src/cli/index.ts @@ -119,7 +119,7 @@ async function runCommand(cmd: string, flags: yargs.Arguments) { } case 'config': { const { config } = await import('./config/index.js'); - const [key, value] = flags._.slice(3); + const [key, value] = flags._.slice(3).map(v => v.toString()); const exitCode = await config(key, value, { flags }); return process.exit(exitCode); }