@@ -126,7 +126,7 @@ require('nodejs-addon-example');
126126```
127127
128128``` console
129- $ node --experimental- permission --allow-fs-read=* index.js
129+ $ node --permission --allow-fs-read=* index.js
130130node:internal/modules/cjs/loader:1319
131131 return process.dlopen(module, path.toNamespacedPath(filename));
132132 ^
@@ -168,7 +168,7 @@ childProcess.spawn('node', ['-e', 'require("fs").writeFileSync("/new-file", "exa
168168```
169169
170170``` console
171- $ node --experimental- permission --allow-fs-read=* index.js
171+ $ node --permission --allow-fs-read=* index.js
172172node:internal/child_process:388
173173 const err = this._handle.spawn(options);
174174 ^
@@ -197,7 +197,7 @@ changes:
197197 description: Paths delimited by comma (`,`) are no longer allowed.
198198-->
199199
200- > Stability: 1.1 - Active development
200+ > Stability: 2.0 - Stable.
201201
202202This flag configures file system read permissions using
203203the [ Permission Model] [ ] .
@@ -213,7 +213,7 @@ Examples can be found in the [File System Permissions][] documentation.
213213The initializer module also needs to be allowed. Consider the following example:
214214
215215``` console
216- $ node --experimental- permission index.js
216+ $ node --permission index.js
217217
218218Error: Access to this API has been restricted
219219 at node:internal/main/run_main_module:23:47 {
@@ -226,7 +226,7 @@ Error: Access to this API has been restricted
226226The process needs to have access to the ` index.js ` module:
227227
228228``` bash
229- node --experimental- permission --allow-fs-read=/path/to/index.js index.js
229+ node --permission --allow-fs-read=/path/to/index.js index.js
230230```
231231
232232### ` --allow-fs-write `
@@ -239,7 +239,7 @@ changes:
239239 description: Paths delimited by comma (`,`) are no longer allowed.
240240-->
241241
242- > Stability: 1.1 - Active development
242+ > Stability: 2.0 - Stable.
243243
244244This flag configures file system write permissions using
245245the [ Permission Model] [ ] .
@@ -285,7 +285,7 @@ new WASI({
285285```
286286
287287``` console
288- $ node --experimental- permission --allow-fs-read=* index.js
288+ $ node --permission --allow-fs-read=* index.js
289289
290290Error: Access to this API has been restricted
291291 at node:internal/main/run_main_module:30:49 {
@@ -316,7 +316,7 @@ new Worker(__filename);
316316```
317317
318318``` console
319- $ node --experimental- permission --allow-fs-read=* index.js
319+ $ node --permission --allow-fs-read=* index.js
320320
321321Error: Access to this API has been restricted
322322 at node:internal/main/run_main_module:17:47 {
@@ -1000,13 +1000,17 @@ added:
10001000
10011001Enable experimental support for the network inspection with Chrome DevTools.
10021002
1003- ### ` --experimental- permission `
1003+ ### ` --permission `
10041004
10051005<!-- YAML
10061006added: v20.0.0
1007+ changes:
1008+ - version: REPLACEME
1009+ pr-url: https://github.com/nodejs/node/pull/56201
1010+ description: Permission Model is now stable.
10071011-->
10081012
1009- > Stability: 1.1 - Active development
1013+ > Stability: 2.0 - Stable
10101014
10111015Enable the Permission Model for current process. When enabled, the
10121016following permissions are restricted:
@@ -3025,7 +3029,6 @@ one is included in the list below.
30253029* ` --experimental-json-modules `
30263030* ` --experimental-loader `
30273031* ` --experimental-modules `
3028- * ` --experimental-permission `
30293032* ` --experimental-print-required-tla `
30303033* ` --experimental-require-module `
30313034* ` --experimental-shadow-realm `
@@ -3078,6 +3081,7 @@ one is included in the list below.
30783081* ` --openssl-legacy-provider `
30793082* ` --openssl-shared-config `
30803083* ` --pending-deprecation `
3084+ * ` --permission `
30813085* ` --preserve-symlinks-main `
30823086* ` --preserve-symlinks `
30833087* ` --prof-process `
0 commit comments