@eide/foir-cli 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2905,12 +2905,9 @@ function registerSelectProjectCommand(program2, globalOpts) {
|
|
|
2905
2905
|
selectedProject = projects.find((p) => p.id === projectId);
|
|
2906
2906
|
}
|
|
2907
2907
|
console.log("\nProvisioning API key for CLI access...");
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
"x-project-id": selectedProject.id
|
|
2912
|
-
});
|
|
2913
|
-
const { apiKey, apiKeyId } = await provisionApiKey(projectClient);
|
|
2908
|
+
await client.identity.switchTenant(selectedProject.tenantId);
|
|
2909
|
+
await client.identity.switchProject(selectedProject.id);
|
|
2910
|
+
const { apiKey, apiKeyId } = await provisionApiKey(client);
|
|
2914
2911
|
await writeProjectContext(
|
|
2915
2912
|
{
|
|
2916
2913
|
id: selectedProject.id,
|