From ad34cfc8ac6ad537265c0e24daf30ee7cacd8e06 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 5 Mar 2018 09:53:16 +0100 Subject: [PATCH 1/1] Add documentation for upload script --- README.md | 1 + server/tools/upload.ts | 3 ++- support/doc/upload-cli.md | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 support/doc/upload-cli.md 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 +``` -- 2.41.0