Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@freestyle-sh/fdev-provider-gcloud

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freestyle-sh/fdev-provider-gcloud

Copy local `gcloud` config/auth files into fdev workspaces.

latest
Source
npmnpm
Version
0.1.7
Version published
Maintainers
3
Created
Source

@freestyle-sh/fdev-provider-gcloud

Copy local gcloud config/auth files into fdev workspaces.

This provider does not own Google OAuth. It requires the developer's local machine to have gcloud installed and authenticated, then copies selected files from the local gcloud config directory into a workspace. This makes normal VM-side commands such as gcloud auth list behave like they do locally.

import { workflow } from "@freestyle-sh/fdev";
import {
  copyGcloudConfig,
  gcloudConfigCopyInjectionSteps,
  gcloudCopiedConfigReadyCommand,
} from "@freestyle-sh/fdev-provider-gcloud";

const app = workflow("example", {
  providers: {
    gcloudConfig: copyGcloudConfig.provider(),
  },
});

// Inside workspace.onOpen:
const gcloudConfigFiles = await providers.gcloudConfig.configFiles();
for (const step of gcloudConfigCopyInjectionSteps(gcloudConfigFiles)) {
  await vm.exec(step.command, { name: step.name, env: step.env });
}

const verified = await vm.probe(gcloudCopiedConfigReadyCommand());
if (!verified.ok) throw new Error("gcloud did not accept the copied config files");

If local gcloud is missing, provider startup fails with the Google Cloud SDK install URL. If it is not authenticated, startup asks the user to run gcloud auth login.

FAQs

Package last updated on 12 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts