0.0.6 • Published 10 months ago

install-pocketbase v0.0.6

Weekly downloads
-
License
-
Repository
github
Last release
10 months ago

install-pocketbase

Install PocketBase easily using npx!

Usage

Make sure you have unzip installed on your system.

Install the latest version:

npx install-pocketbase@latest

Install a specific version:

npx install-pocketbase --tag <version>

Install for a specific platform:

npx install-pocketbase --platform <platform>

Interactive mode:

npx install-pocketbase --interactive

Programmatic Usage

You can also use install-pocketbase programmatically in your Node.js projects.

Installation:

npm install install-pocketbase

Usage:

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 to latest.
  • --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 to false.

Credits

This project uses ungh by unjs. Thanks for the awesome API proxy!

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago