Error with $ deno install -f --name silverbullet

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.

EDIT: I realise that I should probably move this post to the end of this thread: Install SilverBullet on Linux with Deno - #8 by paletochen

Have you tried running deno run instead of deno install.
For example:

deno run --allow-all --no-config --unstable-kv --unstable-worker-options --reload https://get.silverbullet.md  ~/silverbullet/

This will run an instance of SilverBullet under ~/silverbullet/ folder and it will serve it through http://127.0.0.1:3000

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 :slight_smile:

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:
[Unit]
Description=SilverBullet

[Service]
Type=simple
ExecStart=/home/user/.local/bin/silverbullet.sh

[Install]
WantedBy=default.target
systemctl --user enable silverbullet.service
systemctl --user start silverbullet.service
  • sb.log and sb.err files are located in /home/user

Nice - thanks for that. I’ll def be setting up via systemd. For reference, Zef posted a fix the original error I received: