From bf1242a62d41bda3bc09a9c508bc33def19acea5 Mon Sep 17 00:00:00 2001 From: codepuncher Date: Mon, 6 Nov 2023 11:21:09 +0000 Subject: [PATCH] fix(kinsta): list command using wrong flag for company --- src/commands/kinsta/sites/list.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/kinsta/sites/list.ts b/src/commands/kinsta/sites/list.ts index 24a23bca..8de18b19 100644 --- a/src/commands/kinsta/sites/list.ts +++ b/src/commands/kinsta/sites/list.ts @@ -10,7 +10,7 @@ export default class List extends KinstaCommand { static examples = ['<%= config.bin %> <%= command.id %>'] static flags = { - companyId: Flags.string({ + company: Flags.string({ required: true, env: 'IROOTS_KINSTA_COMPANY_ID', }), @@ -18,9 +18,9 @@ export default class List extends KinstaCommand { public async run(): Promise { const {flags} = await this.parse(List) - const {apiKey, companyId} = flags + const {apiKey, company} = flags - const sites = await getAllSites(apiKey, companyId) + const sites = await getAllSites(apiKey, company) console.table(sites) } }