Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/tools/release/deps.ts>dax.CommandBuilder#exportEnv

A modern runtime for JavaScript and TypeScript.
Go to Latest
method dax.CommandBuilder.prototype.exportEnv
Re-export
import { dax } from "https://deno.land/x/deno@v1.38.4/tools/release/deps.ts";
const { CommandBuilder } = dax;

Exports the environment of the command to the executing process.

So for example, changing the directory in a command or exporting an environment variable will actually change the environment of the executing process.

await $`cd src && export SOME_VALUE=5`;
console.log(Deno.env.get("SOME_VALUE")); // 5
console.log(Deno.cwd()); // will be in the src directory

Parameters

optional
value = [UNSUPPORTED]