The links to the code for add, list, and search commands in README.md are updated to reflect the latest version of the CLI (v0.2.1). Additionally, the package version for the CLI is updated from 0.2.0-build to 0.2.1 in package.json.
126 lines
2.7 KiB
Markdown
126 lines
2.7 KiB
Markdown
@psw-ui/cli
|
|
=================
|
|
|
|
CLI for PSW/UI
|
|
|
|
|
|
[](https://oclif.io)
|
|
[](https://npmjs.org/package/@psw-ui/cli)
|
|
[](https://npmjs.org/package/@psw-ui/cli)
|
|
|
|
|
|
<!-- toc -->
|
|
* [Usage](#usage)
|
|
* [Commands](#commands)
|
|
<!-- tocstop -->
|
|
# Usage
|
|
<!-- usage -->
|
|
```sh-session
|
|
$ npm install -g @psw-ui/cli
|
|
$ pswui COMMAND
|
|
running command...
|
|
$ pswui (--version)
|
|
@psw-ui/cli/0.2.0 linux-x64 node-v20.13.1
|
|
$ pswui --help [COMMAND]
|
|
USAGE
|
|
$ pswui COMMAND
|
|
...
|
|
```
|
|
<!-- usagestop -->
|
|
# Commands
|
|
<!-- commands -->
|
|
* [`pswui add [NAME]`](#pswui-add-name)
|
|
* [`pswui help [COMMAND]`](#pswui-help-command)
|
|
* [`pswui list`](#pswui-list)
|
|
|
|
## `pswui add [NAME]`
|
|
|
|
Add a component to the project.
|
|
|
|
```
|
|
USAGE
|
|
$ pswui add [NAME] [-f] [-F] [-p <value>] [-s <value>] [-c <value>]
|
|
|
|
ARGUMENTS
|
|
NAME name of component to install
|
|
|
|
FLAGS
|
|
-F, --forceShared override the existing shared.ts and update it to latest
|
|
-c, --components=<value> place for installation of components
|
|
-f, --force override the existing file
|
|
-p, --config=<value> path to config
|
|
-s, --shared=<value> place for installation of shared.ts
|
|
|
|
DESCRIPTION
|
|
Add a component to the project.
|
|
|
|
EXAMPLES
|
|
$ pswui add
|
|
```
|
|
|
|
_See code: [packages/cli/src/commands/add.tsx](https://github.com/pswui/ui/blob/cli@0.2.1/packages/cli/src/commands/add.tsx)_
|
|
|
|
## `pswui help [COMMAND]`
|
|
|
|
Display help for pswui.
|
|
|
|
```
|
|
USAGE
|
|
$ pswui help [COMMAND...] [-n]
|
|
|
|
ARGUMENTS
|
|
COMMAND... Command to show help for.
|
|
|
|
FLAGS
|
|
-n, --nested-commands Include all nested commands in the output.
|
|
|
|
DESCRIPTION
|
|
Display help for pswui.
|
|
```
|
|
|
|
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.0/src/commands/help.ts)_
|
|
|
|
## `pswui list`
|
|
|
|
Prints all available components in registry and components installed in this project.
|
|
|
|
```
|
|
USAGE
|
|
$ pswui list [-u] [-p <value>]
|
|
|
|
FLAGS
|
|
-p, --config=<value> path to config
|
|
-u, --url include component file URL
|
|
|
|
DESCRIPTION
|
|
Prints all available components in registry and components installed in this project.
|
|
|
|
EXAMPLES
|
|
$ pswui list
|
|
```
|
|
|
|
_See code: [packages/cli/src/commands/list.ts](https://github.com/pswui/ui/blob/cli@0.2.1/packages/cli/src/commands/list.ts)_
|
|
|
|
## `pswui search`
|
|
|
|
Search components.
|
|
|
|
```
|
|
Search components.
|
|
|
|
USAGE
|
|
$ pswui search [QUERY]
|
|
|
|
ARGUMENTS
|
|
QUERY search query
|
|
|
|
DESCRIPTION
|
|
Search components.
|
|
|
|
EXAMPLES
|
|
$ pswui search
|
|
```
|
|
|
|
_See code: [packages/cli/src/commands/search.tsx](https://github.com/pswui/ui/blob/cli@0.2.1/packages/cli/src/commands/search.tsx)_
|
|
<!-- commandsstop -->
|