@teambit/harmony.content.cli-reference 2.0.1265 → 2.0.1267
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 +42 -0
- package/cli-reference.mdx +23 -0
- package/dist/cli-reference.docs.mdx +1 -1
- package/dist/cli-reference.json +42 -0
- package/dist/cli-reference.mdx.js +1 -1
- package/dist/cli-reference.mdx.js.map +1 -1
- package/dist/{preview-1789770357825.js → preview-1790106115091.js} +2 -2
- package/package.json +2 -2
package/cli-reference.docs.mdx
CHANGED
package/cli-reference.json
CHANGED
|
@@ -1855,6 +1855,11 @@
|
|
|
1855
1855
|
"env <string>",
|
|
1856
1856
|
"set the component's environment. (overrides the env from variants if exists)"
|
|
1857
1857
|
],
|
|
1858
|
+
[
|
|
1859
|
+
"",
|
|
1860
|
+
"root",
|
|
1861
|
+
"track the workspace root itself as a component, which owns every file no other component claims"
|
|
1862
|
+
],
|
|
1858
1863
|
[
|
|
1859
1864
|
"j",
|
|
1860
1865
|
"json",
|
|
@@ -6440,5 +6445,42 @@
|
|
|
6440
6445
|
"description": "component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
6441
6446
|
}
|
|
6442
6447
|
]
|
|
6448
|
+
},
|
|
6449
|
+
{
|
|
6450
|
+
"name": "clone <component-id> [dir]",
|
|
6451
|
+
"alias": "",
|
|
6452
|
+
"options": [
|
|
6453
|
+
[
|
|
6454
|
+
"l",
|
|
6455
|
+
"lane <lane-id>",
|
|
6456
|
+
"clone the workspace as it is on this lane (\"scope/name\"): it comes out on the lane, with the components at their heads there"
|
|
6457
|
+
],
|
|
6458
|
+
[
|
|
6459
|
+
"",
|
|
6460
|
+
"remote <url>",
|
|
6461
|
+
"url of the scope hosting the components, when it is neither on bit.cloud nor in the global remotes"
|
|
6462
|
+
],
|
|
6463
|
+
[
|
|
6464
|
+
"x",
|
|
6465
|
+
"skip-dependency-installation",
|
|
6466
|
+
"do not install the dependencies, and so do not compile, after the clone"
|
|
6467
|
+
]
|
|
6468
|
+
],
|
|
6469
|
+
"description": "create a workspace from its workspace-root component, with every component it lists",
|
|
6470
|
+
"extendedDescription": "the workspace-root component is the one tracked at a workspace root (\"bit add .\"). it versions the workspace's own files - workspace.jsonc, .bitmap, lockfile, configs - and this command makes a workspace out of it, the way \"git clone\" makes a working tree out of a repository: the root files land at the root, every component the root lists is imported into the directory it records, then the dependencies are installed.\nthe components come at their heads on main, or on the lane given with --lane. a version on the root id pins the root files only.\nruns outside a workspace. the directory must be empty or not exist, and defaults to the component name.",
|
|
6471
|
+
"group": "workspace-setup",
|
|
6472
|
+
"private": false,
|
|
6473
|
+
"remoteOp": true,
|
|
6474
|
+
"skipWorkspace": true,
|
|
6475
|
+
"arguments": [
|
|
6476
|
+
{
|
|
6477
|
+
"name": "component-id",
|
|
6478
|
+
"description": "the workspace-root component, with its scope. a version pins the root files"
|
|
6479
|
+
},
|
|
6480
|
+
{
|
|
6481
|
+
"name": "dir",
|
|
6482
|
+
"description": "where to create the workspace. defaults to the component name, must be empty or absent"
|
|
6483
|
+
}
|
|
6484
|
+
]
|
|
6443
6485
|
}
|
|
6444
6486
|
]
|
package/cli-reference.mdx
CHANGED
|
@@ -34,6 +34,7 @@ Registers one or more directories as Bit components without changing your files.
|
|
|
34
34
|
| `--override <boolean>` | `-o` | override existing component if exists (default = false) |
|
|
35
35
|
| `--scope <string>` | `-s` | sets the component's scope. if not entered, the default-scope from workspace.jsonc will be used |
|
|
36
36
|
| `--env <string>` | `-e` | set the component's environment. (overrides the env from variants if exists) |
|
|
37
|
+
| `--root` | | track the workspace root itself as a component, which owns every file no other component claims |
|
|
37
38
|
| `--json` | `-j` | output as json format |
|
|
38
39
|
|
|
39
40
|
---
|
|
@@ -502,6 +503,28 @@ note: this cache has minimal impact on disk space. to free significant disk spac
|
|
|
502
503
|
|
|
503
504
|
---
|
|
504
505
|
|
|
506
|
+
## clone
|
|
507
|
+
|
|
508
|
+
**Description**: create a workspace from its workspace-root component, with every component it lists
|
|
509
|
+
the workspace-root component is the one tracked at a workspace root ("bit add ."). it versions the workspace's own files - workspace.jsonc, .bitmap, lockfile, configs - and this command makes a workspace out of it, the way "git clone" makes a working tree out of a repository: the root files land at the root, every component the root lists is imported into the directory it records, then the dependencies are installed.
|
|
510
|
+
the components come at their heads on main, or on the lane given with --lane. a version on the root id pins the root files only.
|
|
511
|
+
runs outside a workspace. the directory must be empty or not exist, and defaults to the component name.
|
|
512
|
+
|
|
513
|
+
`bit clone <component-id> [dir]`
|
|
514
|
+
|
|
515
|
+
| **Arg** | **Description** |
|
|
516
|
+
| -------------- | :------------------------------------------------------------------------------------: |
|
|
517
|
+
| `component-id` | the workspace-root component, with its scope. a version pins the root files |
|
|
518
|
+
| `dir` | where to create the workspace. defaults to the component name, must be empty or absent |
|
|
519
|
+
|
|
520
|
+
| **Option** | **Option alias** | **Description** |
|
|
521
|
+
| -------------------------------- | :--------------: | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
522
|
+
| `--lane <lane-id>` | `-l` | clone the workspace as it is on this lane ("scope/name"): it comes out on the lane, with the components at their heads there |
|
|
523
|
+
| `--remote <url>` | | url of the scope hosting the components, when it is neither on bit.cloud nor in the global remotes |
|
|
524
|
+
| `--skip-dependency-installation` | `-x` | do not install the dependencies, and so do not compile, after the clone |
|
|
525
|
+
|
|
526
|
+
---
|
|
527
|
+
|
|
505
528
|
## compile
|
|
506
529
|
|
|
507
530
|
**Description**: transpile component source files
|
package/dist/cli-reference.json
CHANGED
|
@@ -1855,6 +1855,11 @@
|
|
|
1855
1855
|
"env <string>",
|
|
1856
1856
|
"set the component's environment. (overrides the env from variants if exists)"
|
|
1857
1857
|
],
|
|
1858
|
+
[
|
|
1859
|
+
"",
|
|
1860
|
+
"root",
|
|
1861
|
+
"track the workspace root itself as a component, which owns every file no other component claims"
|
|
1862
|
+
],
|
|
1858
1863
|
[
|
|
1859
1864
|
"j",
|
|
1860
1865
|
"json",
|
|
@@ -6440,5 +6445,42 @@
|
|
|
6440
6445
|
"description": "component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
6441
6446
|
}
|
|
6442
6447
|
]
|
|
6448
|
+
},
|
|
6449
|
+
{
|
|
6450
|
+
"name": "clone <component-id> [dir]",
|
|
6451
|
+
"alias": "",
|
|
6452
|
+
"options": [
|
|
6453
|
+
[
|
|
6454
|
+
"l",
|
|
6455
|
+
"lane <lane-id>",
|
|
6456
|
+
"clone the workspace as it is on this lane (\"scope/name\"): it comes out on the lane, with the components at their heads there"
|
|
6457
|
+
],
|
|
6458
|
+
[
|
|
6459
|
+
"",
|
|
6460
|
+
"remote <url>",
|
|
6461
|
+
"url of the scope hosting the components, when it is neither on bit.cloud nor in the global remotes"
|
|
6462
|
+
],
|
|
6463
|
+
[
|
|
6464
|
+
"x",
|
|
6465
|
+
"skip-dependency-installation",
|
|
6466
|
+
"do not install the dependencies, and so do not compile, after the clone"
|
|
6467
|
+
]
|
|
6468
|
+
],
|
|
6469
|
+
"description": "create a workspace from its workspace-root component, with every component it lists",
|
|
6470
|
+
"extendedDescription": "the workspace-root component is the one tracked at a workspace root (\"bit add .\"). it versions the workspace's own files - workspace.jsonc, .bitmap, lockfile, configs - and this command makes a workspace out of it, the way \"git clone\" makes a working tree out of a repository: the root files land at the root, every component the root lists is imported into the directory it records, then the dependencies are installed.\nthe components come at their heads on main, or on the lane given with --lane. a version on the root id pins the root files only.\nruns outside a workspace. the directory must be empty or not exist, and defaults to the component name.",
|
|
6471
|
+
"group": "workspace-setup",
|
|
6472
|
+
"private": false,
|
|
6473
|
+
"remoteOp": true,
|
|
6474
|
+
"skipWorkspace": true,
|
|
6475
|
+
"arguments": [
|
|
6476
|
+
{
|
|
6477
|
+
"name": "component-id",
|
|
6478
|
+
"description": "the workspace-root component, with its scope. a version pins the root files"
|
|
6479
|
+
},
|
|
6480
|
+
{
|
|
6481
|
+
"name": "dir",
|
|
6482
|
+
"description": "where to create the workspace. defaults to the component name, must be empty or absent"
|
|
6483
|
+
}
|
|
6484
|
+
]
|
|
6443
6485
|
}
|
|
6444
6486
|
]
|