aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-05 09:53:16 +0100
committerChocobozzz <me@florianbigard.com>2018-03-05 09:53:16 +0100
commitad34cfc8ac6ad537265c0e24daf30ee7cacd8e06 (patch)
tree8e50c81ba6a0cf63515caea760510510903eb176
parent446f78d7b40a50a792fa903ca8e031a904d8ca30 (diff)
downloadPeerTube-ad34cfc8ac6ad537265c0e24daf30ee7cacd8e06.tar.gz
PeerTube-ad34cfc8ac6ad537265c0e24daf30ee7cacd8e06.tar.zst
PeerTube-ad34cfc8ac6ad537265c0e24daf30ee7cacd8e06.zip
Add documentation for upload script
-rw-r--r--README.md1
-rw-r--r--server/tools/upload.ts3
-rw-r--r--support/doc/upload-cli.md16
3 files changed, 19 insertions, 1 deletions
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:
166## Tools 166## Tools
167 167
168 * [Import videos (YouTube, Dailymotion, Vimeo...)](/support/doc/import-videos.md) 168 * [Import videos (YouTube, Dailymotion, Vimeo...)](/support/doc/import-videos.md)
169 * [Upload videos from the CLI](/support/doc/upload-cli.md)
169 170
170## Architecture 171## Architecture
171 172
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 () {
76 commentsEnabled: program['commentsEnabled'], 76 commentsEnabled: program['commentsEnabled'],
77 fixture: program['file'], 77 fixture: program['file'],
78 thumbnailfile: program['thumbnailPath'], 78 thumbnailfile: program['thumbnailPath'],
79 previewfile: program['previewPath'] 79 previewfile: program['previewPath'],
80 support: undefined
80 } 81 }
81 82
82 await uploadVideo(program['url'], accessToken, videoAttributes) 83 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 @@
1# Upload videos from CLI
2
3 - [Installation](#installation)
4 - [Usage](#usage)
5
6## Installation
7
8### Dependencies
9
10 * [PeerTube dependencies](dependencies.md)
11
12## Usage
13
14```
15node dist/server/tools/upload.js --help
16```