MCPcopy Create free account
hub / github.com/netlify/cli / getEnvironmentVariables

Function getEnvironmentVariables

tests/integration/utils/mock-api.ts:148–152  ·  view source on GitHub ↗
({ apiUrl }: { apiUrl?: string })

Source from the content-addressed store, hash-verified

146// `SHLVL` used to overwrite prompts for scripted commands in production/dev
147// environments see `scriptedCommand` property of `BaseCommand`
148export const getEnvironmentVariables = ({ apiUrl }: { apiUrl?: string }) => ({
149 NETLIFY_AUTH_TOKEN: 'fake-token',
150 NETLIFY_SITE_ID: 'site_id',
151 NETLIFY_API_URL: apiUrl,
152})
153
154/**
155 * Set the `isTTY` property of `process.stdin` to the given boolean value.

Callers 8

getCLIOptionsFunction · 0.70
functions.test.tsFile · 0.50
sites.test.tsFile · 0.50
blobs-set.test.tsFile · 0.50
env-set.test.tsFile · 0.50
env-unset.test.tsFile · 0.50
env-clone.test.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected