0.0.6 • Published 8 months ago
install-pocketbase v0.0.6
install-pocketbase
Install PocketBase easily using npx!
Usage
Make sure you have unzip installed on your system.
Install the latest version:
npx install-pocketbase@latestInstall a specific version:
npx install-pocketbase --tag <version>Install for a specific platform:
npx install-pocketbase --platform <platform>Interactive mode:
npx install-pocketbase --interactiveProgrammatic Usage
You can also use install-pocketbase programmatically in your Node.js projects.
Installation:
npm install install-pocketbaseUsage:
import { getDownloadUrl, install } from "install-pocketbase";
const downloadUrl = await getDownloadUrl({
tag: "latest",
platform: "linux_amd64",
});
await install(downloadUrl, {
onProgress: (progress, total) => {
console.log(`Downloaded ${progress} of ${total} bytes`);
},
});Options
--tag,-t: Version tag to install. Defaults tolatest.--platform,-p: Platform to install. Defaults to your OS platform and architecture.--interactive,-i: Interactive mode. Prompts you to select a version from the available releases. Defaults tofalse.
Credits
This project uses ungh by unjs. Thanks for the awesome API proxy!