netlify-cli 12.4.1 → 12.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "12.4.1",
3
+ "version": "12.5.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "12.4.1",
9
+ "version": "12.5.0",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@netlify/build": "^29.2.1",
13
+ "@netlify/build": "^29.2.2",
14
14
  "@netlify/config": "^20.2.0",
15
- "@netlify/edge-bundler": "^7.1.0",
15
+ "@netlify/edge-bundler": "^8.0.0",
16
16
  "@netlify/framework-info": "^9.5.3",
17
17
  "@netlify/local-functions-proxy": "^1.1.1",
18
18
  "@netlify/zip-it-and-ship-it": "^8.2.0",
@@ -1564,14 +1564,14 @@
1564
1564
  "integrity": "sha512-4wMPu9iN3/HL97QblBsBay3E1etIciR84izI3U+4iALY+JHCrI+a2jO0qbAZ/nxKoegypYEaiiqWXylm+/zfrw=="
1565
1565
  },
1566
1566
  "node_modules/@netlify/build": {
1567
- "version": "29.2.1",
1568
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.2.1.tgz",
1569
- "integrity": "sha512-7Ff5QzCiTerFUou9yIvt3p9zB2rfLl/4+BqF5vYFC09ogtus8FpKHCadFH09h1Dfg7TZwV62eLmCBmpkkdOerw==",
1567
+ "version": "29.2.2",
1568
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.2.2.tgz",
1569
+ "integrity": "sha512-G9R2Z1rqeSxNZHfTUdXnw8zWms5rMuYQEpioUufgnsS7dnR8oH8P+rgyDuxTCBm8Y/MZZDB+AqIkLUQ35j9Yww==",
1570
1570
  "dependencies": {
1571
1571
  "@bugsnag/js": "^7.0.0",
1572
1572
  "@netlify/cache-utils": "^5.1.0",
1573
1573
  "@netlify/config": "^20.2.0",
1574
- "@netlify/edge-bundler": "7.1.0",
1574
+ "@netlify/edge-bundler": "8.0.0",
1575
1575
  "@netlify/functions-utils": "^5.1.1",
1576
1576
  "@netlify/git-utils": "^5.1.0",
1577
1577
  "@netlify/plugins-list": "^6.59.0",
@@ -1630,9 +1630,9 @@
1630
1630
  }
1631
1631
  },
1632
1632
  "node_modules/@netlify/build/node_modules/@netlify/edge-bundler": {
1633
- "version": "7.1.0",
1634
- "resolved": "https://registry.npmjs.org/@netlify/edge-bundler/-/edge-bundler-7.1.0.tgz",
1635
- "integrity": "sha512-hYi6kT5qJ+thJbk9ouus0Gcwt9S3MAbAeI1TC9sS8wR3dwGS9T/TNRLgq0cjpV0cjJZMK+4NRsyw12Dn6c99/A==",
1633
+ "version": "8.0.0",
1634
+ "resolved": "https://registry.npmjs.org/@netlify/edge-bundler/-/edge-bundler-8.0.0.tgz",
1635
+ "integrity": "sha512-th0HKJ0oqsSVq+kyElP2e1goVZtElz+1b0dK+ddRj6BYAZfGjskoiN1LZo58QPHtZ8Vim3EYQwhDCaLddqGIQw==",
1636
1636
  "dependencies": {
1637
1637
  "@import-maps/resolve": "^1.0.1",
1638
1638
  "ajv": "^8.11.2",
@@ -2976,9 +2976,9 @@
2976
2976
  }
2977
2977
  },
2978
2978
  "node_modules/@netlify/edge-bundler": {
2979
- "version": "7.1.0",
2980
- "resolved": "https://registry.npmjs.org/@netlify/edge-bundler/-/edge-bundler-7.1.0.tgz",
2981
- "integrity": "sha512-hYi6kT5qJ+thJbk9ouus0Gcwt9S3MAbAeI1TC9sS8wR3dwGS9T/TNRLgq0cjpV0cjJZMK+4NRsyw12Dn6c99/A==",
2979
+ "version": "8.0.0",
2980
+ "resolved": "https://registry.npmjs.org/@netlify/edge-bundler/-/edge-bundler-8.0.0.tgz",
2981
+ "integrity": "sha512-th0HKJ0oqsSVq+kyElP2e1goVZtElz+1b0dK+ddRj6BYAZfGjskoiN1LZo58QPHtZ8Vim3EYQwhDCaLddqGIQw==",
2982
2982
  "dependencies": {
2983
2983
  "@import-maps/resolve": "^1.0.1",
2984
2984
  "ajv": "^8.11.2",
@@ -25377,14 +25377,14 @@
25377
25377
  "integrity": "sha512-4wMPu9iN3/HL97QblBsBay3E1etIciR84izI3U+4iALY+JHCrI+a2jO0qbAZ/nxKoegypYEaiiqWXylm+/zfrw=="
25378
25378
  },
25379
25379
  "@netlify/build": {
25380
- "version": "29.2.1",
25381
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.2.1.tgz",
25382
- "integrity": "sha512-7Ff5QzCiTerFUou9yIvt3p9zB2rfLl/4+BqF5vYFC09ogtus8FpKHCadFH09h1Dfg7TZwV62eLmCBmpkkdOerw==",
25380
+ "version": "29.2.2",
25381
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.2.2.tgz",
25382
+ "integrity": "sha512-G9R2Z1rqeSxNZHfTUdXnw8zWms5rMuYQEpioUufgnsS7dnR8oH8P+rgyDuxTCBm8Y/MZZDB+AqIkLUQ35j9Yww==",
25383
25383
  "requires": {
25384
25384
  "@bugsnag/js": "^7.0.0",
25385
25385
  "@netlify/cache-utils": "^5.1.0",
25386
25386
  "@netlify/config": "^20.2.0",
25387
- "@netlify/edge-bundler": "7.1.0",
25387
+ "@netlify/edge-bundler": "8.0.0",
25388
25388
  "@netlify/functions-utils": "^5.1.1",
25389
25389
  "@netlify/git-utils": "^5.1.0",
25390
25390
  "@netlify/plugins-list": "^6.59.0",
@@ -25437,9 +25437,9 @@
25437
25437
  },
25438
25438
  "dependencies": {
25439
25439
  "@netlify/edge-bundler": {
25440
- "version": "7.1.0",
25441
- "resolved": "https://registry.npmjs.org/@netlify/edge-bundler/-/edge-bundler-7.1.0.tgz",
25442
- "integrity": "sha512-hYi6kT5qJ+thJbk9ouus0Gcwt9S3MAbAeI1TC9sS8wR3dwGS9T/TNRLgq0cjpV0cjJZMK+4NRsyw12Dn6c99/A==",
25440
+ "version": "8.0.0",
25441
+ "resolved": "https://registry.npmjs.org/@netlify/edge-bundler/-/edge-bundler-8.0.0.tgz",
25442
+ "integrity": "sha512-th0HKJ0oqsSVq+kyElP2e1goVZtElz+1b0dK+ddRj6BYAZfGjskoiN1LZo58QPHtZ8Vim3EYQwhDCaLddqGIQw==",
25443
25443
  "requires": {
25444
25444
  "@import-maps/resolve": "^1.0.1",
25445
25445
  "ajv": "^8.11.2",
@@ -26255,9 +26255,9 @@
26255
26255
  }
26256
26256
  },
26257
26257
  "@netlify/edge-bundler": {
26258
- "version": "7.1.0",
26259
- "resolved": "https://registry.npmjs.org/@netlify/edge-bundler/-/edge-bundler-7.1.0.tgz",
26260
- "integrity": "sha512-hYi6kT5qJ+thJbk9ouus0Gcwt9S3MAbAeI1TC9sS8wR3dwGS9T/TNRLgq0cjpV0cjJZMK+4NRsyw12Dn6c99/A==",
26258
+ "version": "8.0.0",
26259
+ "resolved": "https://registry.npmjs.org/@netlify/edge-bundler/-/edge-bundler-8.0.0.tgz",
26260
+ "integrity": "sha512-th0HKJ0oqsSVq+kyElP2e1goVZtElz+1b0dK+ddRj6BYAZfGjskoiN1LZo58QPHtZ8Vim3EYQwhDCaLddqGIQw==",
26261
26261
  "requires": {
26262
26262
  "@import-maps/resolve": "^1.0.1",
26263
26263
  "ajv": "^8.11.2",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "12.4.1",
4
+ "version": "12.5.0",
5
5
  "author": "Netlify Inc.",
6
6
  "type": "module",
7
7
  "contributors": [
@@ -230,9 +230,9 @@
230
230
  "prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tools,scripts,site,tests,.github}/**/*.{mjs,cjs,js,md,yml,json,html}\" \"*.{mjs,cjs,js,yml,json,html}\" \".*.{mjs,cjs,js,yml,json,html}\" \"!CHANGELOG.md\" \"!npm-shrinkwrap.json\" \"!**/*/package-lock.json\" \"!.github/**/*.md\""
231
231
  },
232
232
  "dependencies": {
233
- "@netlify/build": "^29.2.1",
233
+ "@netlify/build": "^29.2.2",
234
234
  "@netlify/config": "^20.2.0",
235
- "@netlify/edge-bundler": "^7.1.0",
235
+ "@netlify/edge-bundler": "^8.0.0",
236
236
  "@netlify/framework-info": "^9.5.3",
237
237
  "@netlify/local-functions-proxy": "^1.1.1",
238
238
  "@netlify/zip-it-and-ship-it": "^8.2.0",
@@ -76,6 +76,14 @@ const envList = async (options, command) => {
76
76
  return false
77
77
  }
78
78
 
79
+ if (options.plain) {
80
+ const plaintext = Object.entries(environment)
81
+ .map(([key, variable]) => `${key}=${variable.value}`)
82
+ .join('\n')
83
+ log(plaintext)
84
+ return false
85
+ }
86
+
79
87
  const forSite = `for site ${chalk.green(siteInfo.name)}`
80
88
  const contextType = AVAILABLE_CONTEXTS.includes(context) ? 'context' : 'branch'
81
89
  const withContext = isUsingEnvelope ? `in the ${chalk.magenta(options.context)} ${contextType}` : ''
@@ -126,6 +134,7 @@ export const createEnvListCommand = (program) =>
126
134
  normalizeContext,
127
135
  'dev',
128
136
  )
137
+ .addOption(new Option('--plain', 'Output environment variables as plaintext').conflicts('json'))
129
138
  .addOption(
130
139
  new Option('-s, --scope <scope>', 'Specify a scope')
131
140
  .choices(['builds', 'functions', 'post-processing', 'runtime', 'any'])
@@ -136,6 +145,7 @@ export const createEnvListCommand = (program) =>
136
145
  'netlify env:list --context production',
137
146
  'netlify env:list --context branch:staging',
138
147
  'netlify env:list --scope functions',
148
+ 'netlify env:list --plain',
139
149
  ])
140
150
  .description('Lists resolved environment variables for site (includes netlify.toml)')
141
151
  .action(async (options, command) => {