From 794c4cde3cd47042472dccdf4b60a012014dd26d Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 3 Oct 2024 16:49:20 +0200 Subject: [PATCH] fix(cli): fix set client of instance when passing token and base url --- cli/instance.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cli/instance.ts b/cli/instance.ts index 2354acdec4..69a69619ea 100644 --- a/cli/instance.ts +++ b/cli/instance.ts @@ -190,6 +190,12 @@ export async function pickInstance( const instances = await allInstances(); if (opts.baseUrl && opts.token) { log.info("Using instance fully defined by --base-url and --token"); + + setClient( + opts.token, + opts.baseUrl.endsWith("/") ? opts.baseUrl.slice(0, -1) : opts.baseUrl + ); + return { name: "custom", remote: opts.baseUrl,