https://github.com/postcatlab/postcat-cli
Postcat development cli tool
https://github.com/postcatlab/postcat-cli
Last synced: 3 months ago
JSON representation
Postcat development cli tool
- Host: GitHub
- URL: https://github.com/postcatlab/postcat-cli
- Owner: Postcatlab
- License: apache-2.0
- Created: 2022-04-05T09:12:23.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T09:28:03.000Z (about 3 years ago)
- Last Synced: 2025-04-21T23:56:35.802Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 131 KB
- Stars: 2
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PC CLI
## Installion
```
npm install -g @postcat/cli
```
Now, you can use `pcex xxx` command to generate、upload plugin of postcat.
## Generate
```bash
pcex generate
# or
pcex g
# or
pcex g [--type]
```
The commad will generate a folder includes base config files, let you could create any features.
## Upload
```
pcex upload
```
It will find and go inside the package directory, and upload the `package.json` to postcat market. However you need to wait until it is approved to find it in the market.
## Debug
```
pcex debug
```
The command will create a link between postcat with your extension. It seems like install your extension from the market, but you don't need to upload the extension. We are also planning to support hot-update.
# Cli Development
```
pnpm link --global
```
or
```
npm pack
npm i --location=global postcat-cli-${version}.tgz
```