@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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -6
  2. 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
- const projectClient = createPlatformClientWithHeaders(apiUrl, {
2909
- Authorization: `Bearer ${credentials.accessToken}`,
2910
- "x-tenant-id": selectedProject.tenantId,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eide/foir-cli",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Universal platform CLI for Foir platform",
5
5
  "type": "module",
6
6
  "publishConfig": {