-
has anyone used peertube's cli tools i am trying to upload a plugin i made without having to publish it?
-
-
@mdc773 look at the cloudron docs instead - https://docs.cloudron.io/apps/peertube/#cli
-
For example:
root@b549741b-1e0e-4817-8261-57048ebe6fe9:/app/code/server# peertube plugins list --url https://peertube.smartserver.io --username root --password changeme ββββββββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββ β name β version β homepage β ββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββ€ β peertube-plugin-auth-ldap β 0.0.10 β https://framagit.org/framasoft/peertube/officiaβ¦ β ββββββββββββββββββββββββββββββββββββββββββββββββββββ΄βββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββ
-
@girish The above plugin listing works fine. I must be missing something with installing a plugin. I have a plugin that I put in "storage/cappital/plugin-v1.0.0" via the file manager. I then run the command:
peertube plugins install --path /app/data/storage/cappital/plugin-v1.0.0 --url https://peertube.myurl.com --username root --password changeme
I get errors that it cannot install. Does this look right?
The first part of the errors.Cannot install plugin. Error: Expected status 200, got 400. The server responded: "Cannot install plugin /app/data/storage/cappital/plugin-v1.0.0". You may take a closer look at the logs. To see how to do so, check out this page: https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/development/tests.md#debug-server-logs at buildRequest (/app/code/cli/dist/shared/server-commands/requests/requests.js:148:16) at makePostBodyRequest (/app/code/cli/dist/shared/server-commands/requests/requests.js:77:12) at PluginsCommand.postBodyRequest (/app/code/cli/dist/shared/server-commands/shared/abstract-command.js:37:51) at PluginsCommand.install (/app/code/cli/dist/shared/server-commands/server/plugins-command.js:63:21) at /app/code/cli/dist/server/tools/peertube-plugins.js:95:34 at Generator.next (<anonymous>) at fulfilled (/app/code/cli/node_modules/tslib/tslib.js:164:62) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) ---- at /app/code/cli/dist/shared/server-commands/requests/requests.js:151:25 at /app/code/cli/node_modules/supertest/lib/test.js:308:13 at Test._assertFunction (/app/code/cli/node_modules/supertest/lib/test.js:285:13) at Test.assert (/app/code/cli/node_modules/supertest/lib/test.js:164:23) at localAssert (/app/code/cli/node_modules/supertest/lib/test.js:120:14) at /app/code/cli/node_modules/supertest/lib/test.js:125:7 at Request.callback (/app/code/cli/node_modules/superagent/lib/node/index.js:867:3) at /app/code/cli/node_modules/superagent/lib/node/index.js:1070:18 at IncomingMessage.<anonymous> (/app/code/cli/node_modules/superagent/lib/node/parsers/json.js:21:7) at IncomingMessage.emit (node:events:525:35) {
-
The command looks correct per https://docs.joinpeertube.org/contribute/plugins#test-your-plugin-theme . Do you see anything in the server logs?