Improve plugin guide

This commit is contained in:
Chocobozzz 2023-08-17 15:10:18 +02:00
parent f7882ca3eb
commit 5ab73a4570
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 2 deletions

View File

@ -1071,7 +1071,7 @@ You built files are in the `dist/` directory. Check `package.json` to correctly
### Test your plugin/theme
You need to have a running PeerTube instance with an administrator account.
You need to have a local PeerTube instance with an administrator account.
If you're using dev server on your local computer, test your plugin on `localhost:9000` using `npm run dev` because plugin CSS is not injected in Angular webserver (`localhost:3000`).
Install PeerTube CLI (can be installed on another computer/server than the PeerTube instance):
@ -1086,7 +1086,9 @@ Register the PeerTube instance via the CLI:
peertube-cli auth add -u 'https://peertube.example.com' -U 'root' --password 'test'
```
Then, you can install your local plugin/theme by running:
Then, you can install your local plugin/theme.
The `--path` option is the local path on the PeerTube instance.
If the PeerTube instance is running on another server/computer, you must copy your plugin directory there.
```sh
peertube-cli plugins install --path /your/absolute/plugin-or-theme/path