@@ -123,7 +123,7 @@ require('nodejs-addon-example');
123123```
124124
125125``` console
126- $ node --experimental- permission --allow-fs-read=* index.js
126+ $ node --permission --allow-fs-read=* index.js
127127node:internal/modules/cjs/loader:1319
128128 return process.dlopen(module, path.toNamespacedPath(filename));
129129 ^
@@ -165,7 +165,7 @@ childProcess.spawn('node', ['-e', 'require("fs").writeFileSync("/new-file", "exa
165165```
166166
167167``` console
168- $ node --experimental- permission --allow-fs-read=* index.js
168+ $ node --permission --allow-fs-read=* index.js
169169node:internal/child_process:388
170170 const err = this._handle.spawn(options);
171171 ^
@@ -194,7 +194,7 @@ changes:
194194 description: Paths delimited by comma (`,`) are no longer allowed.
195195-->
196196
197- > Stability: 1.1 - Active development
197+ > Stability: 2.0 - Stable.
198198
199199This flag configures file system read permissions using
200200the [ Permission Model] [ ] .
@@ -210,7 +210,7 @@ Examples can be found in the [File System Permissions][] documentation.
210210The initializer module also needs to be allowed. Consider the following example:
211211
212212``` console
213- $ node --experimental- permission index.js
213+ $ node --permission index.js
214214
215215Error: Access to this API has been restricted
216216 at node:internal/main/run_main_module:23:47 {
@@ -223,7 +223,7 @@ Error: Access to this API has been restricted
223223The process needs to have access to the ` index.js ` module:
224224
225225``` bash
226- node --experimental- permission --allow-fs-read=/path/to/index.js index.js
226+ node --permission --allow-fs-read=/path/to/index.js index.js
227227```
228228
229229### ` --allow-fs-write `
@@ -236,7 +236,7 @@ changes:
236236 description: Paths delimited by comma (`,`) are no longer allowed.
237237-->
238238
239- > Stability: 1.1 - Active development
239+ > Stability: 2.0 - Stable.
240240
241241This flag configures file system write permissions using
242242the [ Permission Model] [ ] .
@@ -282,7 +282,7 @@ new WASI({
282282```
283283
284284``` console
285- $ node --experimental- permission --allow-fs-read=* index.js
285+ $ node --permission --allow-fs-read=* index.js
286286
287287Error: Access to this API has been restricted
288288 at node:internal/main/run_main_module:30:49 {
@@ -313,7 +313,7 @@ new Worker(__filename);
313313```
314314
315315``` console
316- $ node --experimental- permission --allow-fs-read=* index.js
316+ $ node --permission --allow-fs-read=* index.js
317317
318318Error: Access to this API has been restricted
319319 at node:internal/main/run_main_module:17:47 {
@@ -935,13 +935,17 @@ added:
935935
936936Enable experimental support for the network inspection with Chrome DevTools.
937937
938- ### ` --experimental- permission `
938+ ### ` --permission `
939939
940940<!-- YAML
941941added: v20.0.0
942+ changes:
943+ - version: REPLACEME
944+ pr-url: https://github.com/nodejs/node/pull/56201
945+ description: Permission Model is now stable.
942946-->
943947
944- > Stability: 1.1 - Active development
948+ > Stability: 2.0 - Stable
945949
946950Enable the Permission Model for current process. When enabled, the
947951following permissions are restricted:
@@ -3027,7 +3031,6 @@ one is included in the list below.
30273031* ` --experimental-json-modules `
30283032* ` --experimental-loader `
30293033* ` --experimental-modules `
3030- * ` --experimental-permission `
30313034* ` --experimental-print-required-tla `
30323035* ` --experimental-require-module `
30333036* ` --experimental-shadow-realm `
@@ -3080,6 +3083,7 @@ one is included in the list below.
30803083* ` --openssl-legacy-provider `
30813084* ` --openssl-shared-config `
30823085* ` --pending-deprecation `
3086+ * ` --permission `
30833087* ` --preserve-symlinks-main `
30843088* ` --preserve-symlinks `
30853089* ` --prof-process `
0 commit comments