Merge pull request #28 from PretendoNetwork/feat/cli-view

Add download command to CLI
This commit is contained in:
William Oldham 2025-09-16 19:59:32 +01:00 committed by GitHub
commit 32c4b2f7da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
276 changed files with 112 additions and 2266 deletions

View File

@ -40,6 +40,7 @@ ENV NODE_ENV=production
USER node
COPY --chown=node:node update-rotation.mjs ${app_dir}
COPY --chown=node:node ./boss ${app_dir}
COPY --chown=node:node package.json .
COPY --from=dependencies --chown=node:node ${app_dir}/node_modules ${app_dir}/node_modules

View File

@ -45,3 +45,26 @@ Configurations are loaded through environment variables. `.env` files are suppor
## S3 server
The S3 server is optional, you can set `PN_BOSS_CONFIG_CDN_DISK_PATH` if you want to use a local folder as CDN source instead.
# BOSS CLI
The CLI is a helper to interact with the content of the BOSS server.
```sh
npm run build
./boss --help
```
## CLI configuration
Configurations are loaded through environment variables. `.env` files are supported.
| Environment variable | Description | |
| --------------------------- | ------------------------------------------------------------------------------------------- | -------- |
| `PN_BOSS_CLI_GRPC_HOST` | The Host that the BOSS GRPC server is on. Example: `localhost:5678` | Required |
| `PN_BOSS_CLI_GRPC_APIKEY` | Master API key of the BOSS GRPC server. | Required |
| `PN_BOSS_CLI_WIIU_AES_KEY` | The BOSS WiiU AES key, needs to be dumped from a console | Optional |
| `PN_BOSS_CLI_WIIU_HMAC_KEY` | The BOSS WiiU HMAC key, needs to be dumped from a console | Optional |
| `PN_BOSS_CLI_NPDI_URL` | The URL of the NPDI part the BOSS HTTP server, only needed when downloading | Optional |
| `PN_BOSS_CLI_NPDI_HOST` | The Host header for the NPDI requests. Use when you don't have NPDI exposed to the internet | Optional |

2
boss Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
exec node --enable-source-maps dist/cli/cli.js $*

Some files were not shown because too many files have changed in this diff Show More