-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- | ||
title: 'import - CLI command' | ||
description: 'Import a project into the current workspace. Install git-filter-repo for faster imports (https://github.com/newren/git-filter-repo).' | ||
--- | ||
|
||
# import | ||
|
||
Import a project into the current workspace. Install git-filter-repo for faster imports (https://github.com/newren/git-filter-repo). | ||
|
||
## Usage | ||
|
||
```shell | ||
nx import [sourceRemoteUrl] [destination] | ||
``` | ||
|
||
Install `nx` globally to invoke the command directly using `nx`, or use `npx nx`, `yarn nx`, or `pnpm nx`. | ||
|
||
## Options | ||
|
||
### depth | ||
|
||
Type: `number` | ||
|
||
The depth to clone the source repository (limit this for faster git clone) | ||
|
||
### destination | ||
|
||
Type: `string` | ||
|
||
The directory in the current workspace to import into | ||
|
||
### help | ||
|
||
Type: `boolean` | ||
|
||
Show help | ||
|
||
### interactive | ||
|
||
Type: `boolean` | ||
|
||
Default: `true` | ||
|
||
Interactive mode | ||
|
||
### ref | ||
|
||
Type: `string` | ||
|
||
The branch from the source repository to import | ||
|
||
### source | ||
|
||
Type: `string` | ||
|
||
The directory in the source repository to import from | ||
|
||
### sourceRemoteUrl | ||
|
||
Type: `string` | ||
|
||
The remote URL of the source to import | ||
|
||
### verbose | ||
|
||
Type: `boolean` | ||
|
||
Prints additional information about the commands (e.g., stack traces) | ||
|
||
### version | ||
|
||
Type: `boolean` | ||
|
||
Show version number |