Add documentation for upload script
This commit is contained in:
parent
446f78d7b4
commit
ad34cfc8ac
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
```
|
Loading…
Reference in New Issue