Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): update copy arg #5090

Merged
merged 1 commit into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ turbo gen workspace --copy
Create a new workspace in your monorepo by copying from a remote workspace.

```sh
turbo gen workspace --copy -e https://github.com/vercel/turbo/tree/main/examples/with-tailwind/packages/tailwind-config
turbo gen workspace --copy https://github.com/vercel/turbo/tree/main/examples/with-tailwind/packages/tailwind-config
```

<Callout>
Expand Down
9 changes: 3 additions & 6 deletions docs/pages/repo/docs/reference/command-line-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,10 @@ The name for the new workspace

Generate an empty workspace (default: `true`)

##### `--copy`
##### `--copy [source]`

Generate a workspace using an existing workspace as a template
Generate a workspace using an existing workspace as a template.
Can be the name of a local workspace within your monorepo, or a fully qualified GitHub URL with any branch and/or subdirectory.

##### `--destination`

Expand All @@ -745,10 +746,6 @@ The type of workspace to create (`app` or `package`)

The root of your repository (default: directory with _root_ `turbo.json`)

##### `--example / -e`

An example package to add. You can use a GitHub URL with any branch and/or subdirectory

##### `--example-path / -p`

In a rare case, your GitHub URL might contain a branch name with a slash (e.g. `bug/fix-1`) and the path to the example (e.g. `foo/bar`).
Expand Down