|
2 | 2 | sidebar_position: 3 |
3 | 3 | --- |
4 | 4 |
|
5 | | -import { PackageManagerTabs, Badge } from '@theme'; |
| 5 | +import { Badge, PackageManagerTabs } from '@theme'; |
6 | 6 |
|
7 | 7 | # Standalone CLI (Node.js) |
8 | 8 |
|
@@ -96,6 +96,35 @@ Generates a licenses report in the specified format. The output can be written t |
96 | 96 | | `--format [type]` | Output format, one of: `'json'`, `'about-json'` (AboutLibraries-compatible), `'text'`, `'markdown'` | `'json'` | |
97 | 97 | | `--output [path]` | Where to write the output - either `'stdout'` or a path to an output file | `'stdout'` | |
98 | 98 |
|
| 99 | +#### Command: `analyze` |
| 100 | + |
| 101 | +Scan licenses & report the insights: summary, top license types, optionally unknowns & breakdown of licenses by different features. |
| 102 | + |
| 103 | +| Flag / Option | Description | Default | |
| 104 | +| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- | |
| 105 | +| `--root [path]` | Path to the root of your project. | Current working directory | |
| 106 | +| `--list-unknown` | List unknown licenses. | `false` | |
| 107 | +| `--show-breakdown` | Show breakdown of licenses by category and type. | `false` | |
| 108 | +| `--tm, --transitive-deps-mode [mode]` | Controls, which transitive dependencies are included: <ul><li>`'all'`</li> <li>`'from-external-only'` (only transitive dependencies of direct dependencies specified by non-workspace:... specifiers)</li> <li>`'from-workspace-only'` (only direct dependencies of direct dependencies specified by `workspace:` specifier)</li> <li>`'none'`</li></ul> | `'all'` | |
| 109 | +| `--dm, --dev-deps-mode [mode]` | <ul><li>`'root-only'` (only direct devDependencies from the scanned project's root package.json)</li> <li>`'none'`</li></ul> | `'root-only'` | |
| 110 | +| `--od`, `--include-optional-deps [bool]` | Whether to include `optionalDependencies` in the scan; other flags apply. | `true` | |
| 111 | +| `-h`, `--help` | Display help for command. | — | |
| 112 | + |
| 113 | +#### Command: `visualize` |
| 114 | + |
| 115 | +Launches a local server providing a web license graph visualizer & analyzer app: summarizes the dependency graph state, shows an interactive graph of licenses with possibility to select a subgraph, provides browser built-in AI-turbocharged summary of the dependency graph. |
| 116 | + |
| 117 | +| Flag / Option | Description | Default | |
| 118 | +| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | |
| 119 | +| `--port [port]` | Port on which to launch the app. | `8094` | |
| 120 | +| `--h, --host [host]` | Host on which to launch the app. | `"localhost"` | |
| 121 | +| `--a, --auto-open [open]` | Automatically open the app in the browser after launching. | `true` | |
| 122 | +| `--root [path]` | Path to the root of your project. | `"."` | |
| 123 | +| `--tm, --transitive-deps-mode [mode]` | Controls, which transitive dependencies are included: <ul><li>`'all'`</li> <li>`'from-external-only'` (only transitive dependencies of direct dependencies specified by non-workspace:... specifiers)</li> <li>`'from-workspace-only'` (only direct dependencies of direct dependencies specified by `workspace:` specifier)</li> <li>`'none'`</li></ul> | `'all'` | |
| 124 | +| `--dm, --dev-deps-mode [mode]` | <ul><li>`'root-only'` (only direct devDependencies from the scanned project's root package.json)</li> <li>`'none'`</li></ul> | `'root-only'` | |
| 125 | +| `--od`, `--include-optional-deps [bool]` | Whether to include `optionalDependencies` in the scan; other flags apply. | `true` | |
| 126 | +| `-h`, `--help` | Display help for command. | — | |
| 127 | + |
99 | 128 | #### Command: `help` |
100 | 129 |
|
101 | 130 | Displays help, listing the available commands. |
|
0 commit comments