Skip to content

Commit d91ead0

Browse files
committed
docs: include --skip-registry-deps flag
1 parent 46bbd4c commit d91ead0

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

apps/www/content/docs/cli.mdx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,18 @@ Arguments:
5555
components the components to add or a url to the component.
5656
5757
Options:
58-
-y, --yes skip confirmation prompt. (default: false)
59-
-o, --overwrite overwrite existing files. (default: false)
60-
-c, --cwd <cwd> the working directory. defaults to the current directory. (default: "/Users/shadcn/Desktop")
61-
-a, --all add all available components (default: false)
62-
-p, --path <path> the path to add the component to.
63-
-s, --silent mute output. (default: false)
64-
--src-dir use the src directory when creating a new project. (default: false)
65-
--no-src-dir do not use the src directory when creating a new project.
66-
--css-variables use css variables for theming. (default: true)
67-
--no-css-variables do not use css variables for theming.
68-
-h, --help display help for command
58+
-y, --yes skip confirmation prompt. (default: false)
59+
-o, --overwrite overwrite existing files. (default: false)
60+
-c, --cwd <cwd> the working directory. defaults to the current directory. (default: "/Users/shadcn/Desktop")
61+
-a, --all add all available components (default: false)
62+
-p, --path <path> the path to add the component to.
63+
-s, --silent mute output. (default: false)
64+
--src-dir use the src directory when creating a new project. (default: false)
65+
--no-src-dir do not use the src directory when creating a new project.
66+
--skip-registry-deps do not install dependencies from registry. (default: false)
67+
--css-variables use css variables for theming. (default: true)
68+
--no-css-variables do not use css variables for theming.
69+
-h, --help display help for command
6970
```
7071

7172
## build

apps/www/content/docs/registry/registry-item-json.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ Used for registry dependencies. Can be names or URLs. Use the name of the item t
143143

144144
- For `shadcn/ui` registry items such as `button`, `input`, `select`, etc use the name eg. `['button', 'input', 'select']`.
145145
- For custom registry items use the URL of the registry item eg. `['https://example.com/r/hello-world.json']`.
146+
- Using the `--skip-registry-deps` flag will skip the installation of these dependencies.
146147

147148
```json title="registry-item.json" showLineNumbers
148149
{

0 commit comments

Comments
 (0)