]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add documentation for upload script
authorChocobozzz <me@florianbigard.com>
Mon, 5 Mar 2018 08:53:16 +0000 (09:53 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 5 Mar 2018 08:53:16 +0000 (09:53 +0100)
README.md
server/tools/upload.ts
support/doc/upload-cli.md [new file with mode: 0644]

index 57ea4cbf10beade4703d1630375b21ac7d2c03c7..c15f838fc8a00fd77487862c8b25df827a416664 100644 (file)
--- 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
 
index 97e24dc8851f0693eb83ae7692054cb4ed9d4898..ce9e1b62ef2ee0ddc24b9586e71ce844cc7447cc 100644 (file)
@@ -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 (file)
index 0000000..1eff1f0
--- /dev/null
@@ -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
+```