Comments (1)
Here's my workaround using the Netlify API:
SET_ENV_DATA=$(jq -n \
--arg account_id "$NETLIFY_ACCOUNT_ID" \
--arg site_id "$NETLIFY_SITE_ID" \
--arg context_parameter "$BRANCH_NAME" \
--arg key "test_env_var" \
--arg value "test_value" \
'{ $account_id, $key, $site_id, body: { context: "branch", $context_parameter, $value } }')
UPDATED_ENV_DATA=$(netlify api setEnvVarValue --data "${SET_ENV_DATA}")```
from cli.
Related Issues (20)
- Error: Netlify CLI has terminated unexpectedly.
- COMMANDS DIRECTORY MISMATCH
- Missing Types Package Event Dev Warn More Info Link 404s (typo) HOT 2
- 422 "No records matched" error when deploying HOT 6
- "Error: Netlify CLI has terminated unexpectedly This is a problem with the Netlify CLI, not with your application" HOT 3
- DNS configurations HOT 1
- Netlify CLI Issue regexp-tree package
- Installing 17.19.3 fails on `read-pkg-up`
- Can't upgrade to netlify-cli 17.19.3 (or later), fails with "Cannot find package 'regexp-tree' ..." HOT 7
- Netlify functions not working with ESM; always build to module.exports CJS syntax even with package.json "type" set to "module"
- I really don't know HOT 6
- Incorrect import of read-package-up HOT 3
- Warning: Error: Netlify CLI has terminated unexpectedly when used axios
- Increased Netlify Function timeouts not respected by `netlify dev`
- Invalid character in header content ["Content-Security-Policy"]
- Netlify dev fails to acquire port. crashes after init.
- Latest version of cli is pulling in insecure packages that have available patches HOT 4
- deploy and build have different behaviours when run sequentially and as one command
- Command functions:serve - Canβt setup custom path for functions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.