Search code examples
pocketbase

pocketbase: command not found


I am trying to set up pocketbase on a Debian server.

On the server, I created a dir called pb and used scp to transfer over the pocketbase file I downloaded from here.

I downloaded all three linux packages:

I downloaded each file, unzipped it and then moved the pocketbase file over to the server.

(Note: I've downloaded these onto a windows machine and then SCP pocketbase file over to my server.)

When I run pocketbase serve, I get the error command not found.


Solution

  • Execute it as instructed by pocketbase's documentation if you are within the same directory as the bin file:

    ./pocketbase serve

    If you want to run it as pocketbase serve alone you will need to move the bin file under /usr/bin or ideally /usr/local/bin which should be under your system's $PATH variable.

    https://pocketbase.io/docs/

    Run ./pocketbase --help or ./pocketbase [command] --help for more assistance.