From: Chocobozzz Date: Mon, 5 Mar 2018 08:53:16 +0000 (+0100) Subject: Add documentation for upload script X-Git-Tag: v1.0.0-alpha.4~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ad34cfc8ac6ad537265c0e24daf30ee7cacd8e06;p=oweals%2Fpeertube.git Add documentation for upload script --- diff --git a/README.md b/README.md index 57ea4cbf1..c15f838fc 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,7 @@ For now only on Github: ## Tools * [Import videos (YouTube, Dailymotion, Vimeo...)](/support/doc/import-videos.md) + * [Upload videos from the CLI](/support/doc/upload-cli.md) ## Architecture diff --git a/server/tools/upload.ts b/server/tools/upload.ts index 97e24dc88..ce9e1b62e 100644 --- a/server/tools/upload.ts +++ b/server/tools/upload.ts @@ -76,7 +76,8 @@ async function run () { commentsEnabled: program['commentsEnabled'], fixture: program['file'], thumbnailfile: program['thumbnailPath'], - previewfile: program['previewPath'] + previewfile: program['previewPath'], + support: undefined } await uploadVideo(program['url'], accessToken, videoAttributes) diff --git a/support/doc/upload-cli.md b/support/doc/upload-cli.md new file mode 100644 index 000000000..1eff1f0af --- /dev/null +++ b/support/doc/upload-cli.md @@ -0,0 +1,16 @@ +# Upload videos from CLI + + - [Installation](#installation) + - [Usage](#usage) + +## Installation + +### Dependencies + + * [PeerTube dependencies](dependencies.md) + +## Usage + +``` +node dist/server/tools/upload.js --help +```