Show current version of SilverBullet

Hi, can I show the installed version of SilverBullet ?

Like {{installedVersion}} or {{version}} in my home page.

2 Likes

There’s the About: Version command, and if you really like to have it in a template, I suppose this will work:

```space-script
silverbullet.registerFunction({name: "sbVersion"}, () => {
  return syscall("system.getVersion");
});
```

Then you can use it in a template:
```template
Version: {{sbVersion}}
```

5 Likes

Perfect !

I don’t see About: Version but there is Help: Version. Sharing in case anyone else is confused :slight_smile:

1 Like

Update script to use syscalls exposed via “globals”

silverbullet.registerFunction({name: "sbVersion"}, () => {
  return system.getVersion();
});
1 Like