@teambit/harmony.content.cli-reference 2.0.1030 → 2.0.1032
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.
- package/cli-reference.docs.mdx +1 -1
- package/cli-reference.json +17 -0
- package/cli-reference.mdx +21 -0
- package/dist/cli-reference.docs.mdx +1 -1
- package/dist/cli-reference.json +17 -0
- package/dist/cli-reference.mdx.js +1 -1
- package/dist/cli-reference.mdx.js.map +1 -1
- package/dist/{preview-1778094327705.js → preview-1778185794576.js} +2 -2
- package/package.json +2 -2
package/cli-reference.docs.mdx
CHANGED
package/cli-reference.json
CHANGED
|
@@ -657,6 +657,23 @@
|
|
|
657
657
|
}
|
|
658
658
|
]
|
|
659
659
|
},
|
|
660
|
+
{
|
|
661
|
+
"name": "trust [action] [pattern]",
|
|
662
|
+
"options": [],
|
|
663
|
+
"description": "manage which scopes are trusted to load aspects (envs, etc.) into the workspace's process",
|
|
664
|
+
"extendedDescription": "scope-trust is opt-in. when off (the default), aspects from any scope load without a check. when on, aspects from a scope outside the trust list trigger a prompt (interactive shells) or an error (non-interactive).\n\n bit scope trust # same as \"list\"\n bit scope trust list # show status; if on, print the effective trust list\n bit scope trust enable # turn on (writes \"trustedScopes\": [] to workspace.jsonc)\n bit scope trust disable # turn off (removes \"trustedScopes\" from workspace.jsonc)\n bit scope trust add PATTERN # add a pattern (auto-enables if needed)\n bit scope trust remove PATTERN # remove a pattern (does NOT disable when list is empty)\n\nonce on, the effective trust set is: builtin scopes (teambit.*, bitdev.*, and a few others — run \"bit scope trust list\" to see) + the owner of defaultScope + entries listed under \"trustedScopes\". patterns are exact (\"acme.frontend\") or owner wildcard (\"acme.*\").",
|
|
665
|
+
"group": "component-config",
|
|
666
|
+
"arguments": [
|
|
667
|
+
{
|
|
668
|
+
"name": "action",
|
|
669
|
+
"description": "one of: list, enable, disable, add, remove. defaults to \"list\"."
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"name": "pattern",
|
|
673
|
+
"description": "scope pattern (required for \"add\" and \"remove\")"
|
|
674
|
+
}
|
|
675
|
+
]
|
|
676
|
+
},
|
|
660
677
|
{
|
|
661
678
|
"name": "rename <current-scope-name> <new-scope-name>",
|
|
662
679
|
"options": [
|
package/cli-reference.mdx
CHANGED
|
@@ -2355,6 +2355,27 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
|
|
|
2355
2355
|
| `scope-name` | name of the scope to set |
|
|
2356
2356
|
| `component-pattern` | component name, component id, component pattern, or relative directory path. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
2357
2357
|
|
|
2358
|
+
### scope trust
|
|
2359
|
+
|
|
2360
|
+
**Usage**: `scope trust [action] [pattern]`
|
|
2361
|
+
|
|
2362
|
+
**Description**: manage which scopes are trusted to load aspects (envs, etc.) into the workspace's process
|
|
2363
|
+
scope-trust is opt-in. when off (the default), aspects from any scope load without a check. when on, aspects from a scope outside the trust list trigger a prompt (interactive shells) or an error (non-interactive).
|
|
2364
|
+
|
|
2365
|
+
bit scope trust # same as "list"
|
|
2366
|
+
bit scope trust list # show status; if on, print the effective trust list
|
|
2367
|
+
bit scope trust enable # turn on (writes "trustedScopes": [] to workspace.jsonc)
|
|
2368
|
+
bit scope trust disable # turn off (removes "trustedScopes" from workspace.jsonc)
|
|
2369
|
+
bit scope trust add PATTERN # add a pattern (auto-enables if needed)
|
|
2370
|
+
bit scope trust remove PATTERN # remove a pattern (does NOT disable when list is empty)
|
|
2371
|
+
|
|
2372
|
+
once on, the effective trust set is: builtin scopes (teambit._, bitdev._, and a few others — run "bit scope trust list" to see) + the owner of defaultScope + entries listed under "trustedScopes". patterns are exact ("acme.frontend") or owner wildcard ("acme.\*").
|
|
2373
|
+
|
|
2374
|
+
| **Arg** | **Description** |
|
|
2375
|
+
| --------- | :-------------------------------------------------------------: |
|
|
2376
|
+
| `action` | one of: list, enable, disable, add, remove. defaults to "list". |
|
|
2377
|
+
| `pattern` | scope pattern (required for "add" and "remove") |
|
|
2378
|
+
|
|
2358
2379
|
### scope rename
|
|
2359
2380
|
|
|
2360
2381
|
**Usage**: `scope rename <current-scope-name> <new-scope-name>`
|
package/dist/cli-reference.json
CHANGED
|
@@ -657,6 +657,23 @@
|
|
|
657
657
|
}
|
|
658
658
|
]
|
|
659
659
|
},
|
|
660
|
+
{
|
|
661
|
+
"name": "trust [action] [pattern]",
|
|
662
|
+
"options": [],
|
|
663
|
+
"description": "manage which scopes are trusted to load aspects (envs, etc.) into the workspace's process",
|
|
664
|
+
"extendedDescription": "scope-trust is opt-in. when off (the default), aspects from any scope load without a check. when on, aspects from a scope outside the trust list trigger a prompt (interactive shells) or an error (non-interactive).\n\n bit scope trust # same as \"list\"\n bit scope trust list # show status; if on, print the effective trust list\n bit scope trust enable # turn on (writes \"trustedScopes\": [] to workspace.jsonc)\n bit scope trust disable # turn off (removes \"trustedScopes\" from workspace.jsonc)\n bit scope trust add PATTERN # add a pattern (auto-enables if needed)\n bit scope trust remove PATTERN # remove a pattern (does NOT disable when list is empty)\n\nonce on, the effective trust set is: builtin scopes (teambit.*, bitdev.*, and a few others — run \"bit scope trust list\" to see) + the owner of defaultScope + entries listed under \"trustedScopes\". patterns are exact (\"acme.frontend\") or owner wildcard (\"acme.*\").",
|
|
665
|
+
"group": "component-config",
|
|
666
|
+
"arguments": [
|
|
667
|
+
{
|
|
668
|
+
"name": "action",
|
|
669
|
+
"description": "one of: list, enable, disable, add, remove. defaults to \"list\"."
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"name": "pattern",
|
|
673
|
+
"description": "scope pattern (required for \"add\" and \"remove\")"
|
|
674
|
+
}
|
|
675
|
+
]
|
|
676
|
+
},
|
|
660
677
|
{
|
|
661
678
|
"name": "rename <current-scope-name> <new-scope-name>",
|
|
662
679
|
"options": [
|