import { define } from './chunk-WIL4LMMA.js';
import { __name } from './chunk-IBAHCH6O.js';
import { randomBytes } from 'crypto';

var commandSpec = define({
  name: "generate-key",
  description: "Generate an encryption key for encrypting the env blob in deployments",
  args: {}
});
var commandFn = /* @__PURE__ */ __name(async () => {
  const key = randomBytes(32).toString("hex");
  console.log("");
  console.log("Generated _VARLOCK_ENV_KEY:");
  console.log("");
  console.log(`  ${key}`);
  console.log("");
  console.log("Set this as an environment variable on your deployment platform (e.g., Vercel, Cloudflare).");
  console.log("When _VARLOCK_ENV_KEY is present at build time, the resolved env blob will be");
  console.log("encrypted before being injected into the build output, and decrypted at runtime.");
  console.log("");
}, "commandFn");

export { commandFn, commandSpec };
//# sourceMappingURL=chunk-7MSOSZ6B.js.map
//# sourceMappingURL=chunk-7MSOSZ6B.js.map