I’ve been running SB via docker. Now i’m setting a up a dev environment to create a new plugin. I’m following this guide. However, when installing a local version of silverbullet with deno:
$ deno install -f --name silverbullet --unstable-kv --unstable-worker-options -A https://get.silverbullet.md
I get this error:
error: the following required arguments were not provided:
--global
Note: Permission flags can only be used in a global setting
Any ideas whats going on? If it helps I’m running Arch Linux.
Great! after I created a default ~/silverbullet directory it worked:) Though each time I start it has to download… any way to have a full local install?
I don’t use normally deno to run my instance, but docker, so my way may be outdated.
I used to have a local user systemd server. These are my notes, which are obviously saved in silverbullet
NOTE: I run silverbullet edge version. Chaged to the other url if you want the stable one
How to run at boot with --user systemd
We will create a systemd service and a script that will run silverbullet automatically which should not conflict with the docker installation
Default binary: ~/.deno/bin/silverbullet
#!/bin/sh
# generated by deno install
exec deno run --allow-all --unstable-kv --unstable-worker-options --no-config 'https://edge.silverbullet.md/silverbullet.js' "$@"
Create ~/.local/bin/silverbullet.sh file:
#!/bin/bash
## Script to start SilverBullet through Deno
/home/user/.cargo/bin/deno run --allow-all --no-config --unstable-kv --unstable-worker-options --reload https://edge.silverbullet.md/silverbullet.js --sync-only /home/user/silverbullet > /home/user/sb.log 2> /home/user/sb.err
Create the following systemd unit file and save it to ~/.config/systemd/user/silverbullet.service: