@0code/cli
v1.0.1
Published
Command Line Interface (CLI) for UpCode by 0Code
Maintainers
Readme
UpCode CLI
A command-line interface for managing your self-hosted UpCode photo and video library.
Made with ❤️ by OGGY at 0Code
Installation
npm install -g @0code/cliUsage
upcode --help
upcode upload [options]
upcode server-infoDocumentation
For full documentation, visit https://upcode.0code.uk/docs
For developers
Before building the CLI, you must build the UpCode server and the SDK. To build the server run the following in the server folder:
$ pnpm install
$ pnpm run buildThen, to build the open-api client run the following in the open-api folder:
$ ./bin/generate-open-api.shRun from build
Go to the cli folder and build it:
$ pnpm install
$ pnpm run build
$ node dist/index.jsRun and Debug from source (VSCode)
With VScode you can run and debug the UpCode CLI. Go to the launch.json file, find the UpCode CLI config and change this with the command you need to debug
"args": ["upload", "--help"],
replace that for the command of your choice.
Install from build
You can also build and install the CLI using
$ pnpm run build
$ pnpm install -g .