Add documentation for upload script

This commit is contained in:
Chocobozzz 2018-03-05 09:53:16 +01:00
parent 446f78d7b4
commit ad34cfc8ac
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 19 additions and 1 deletions

View File

@ -166,6 +166,7 @@ For now only on Github:
## Tools ## Tools
* [Import videos (YouTube, Dailymotion, Vimeo...)](/support/doc/import-videos.md) * [Import videos (YouTube, Dailymotion, Vimeo...)](/support/doc/import-videos.md)
* [Upload videos from the CLI](/support/doc/upload-cli.md)
## Architecture ## Architecture

View File

@ -76,7 +76,8 @@ async function run () {
commentsEnabled: program['commentsEnabled'], commentsEnabled: program['commentsEnabled'],
fixture: program['file'], fixture: program['file'],
thumbnailfile: program['thumbnailPath'], thumbnailfile: program['thumbnailPath'],
previewfile: program['previewPath'] previewfile: program['previewPath'],
support: undefined
} }
await uploadVideo(program['url'], accessToken, videoAttributes) await uploadVideo(program['url'], accessToken, videoAttributes)

16
support/doc/upload-cli.md Normal file
View File

@ -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
```