Rigel Kent 454c20fa7c stricter youtubedl format selectors (#3516) il y a 3 ans
..
README.md 32d7f2b754 fix a few typos (#2141) il y a 5 ans
cli.ts bd65cf02ff Fix import/upload CLI options il y a 4 ans
package.json 64b5c2476a remove outdated badges, add authorization to caption routes il y a 4 ans
peertube-auth.ts 24198e976f Styling il y a 3 ans
peertube-get-access-token.ts 2aaa1a3fdc Use typescript paths in cli scripts too il y a 5 ans
peertube-import-videos.ts 454c20fa7c stricter youtubedl format selectors (#3516) il y a 3 ans
peertube-plugins.ts a15871560f Move to eslint il y a 4 ans
peertube-redundancy.ts f2eb23cd87 emit more specific status codes on video upload (#3423) il y a 3 ans
peertube-repl.ts faf174d043 Fix CLI build il y a 4 ans
peertube-upload.ts a15871560f Move to eslint il y a 4 ans
peertube-watch.ts a388781916 Add log in peertube watch script on error il y a 4 ans
peertube.ts a15871560f Move to eslint il y a 4 ans
test.ts bd2e2f11d0 Add inspect to test script il y a 4 ans
tsconfig.json 26d6bf6533 Split types and typings il y a 4 ans
yarn.lock 3d3bb23816 Update CLI dependencies il y a 4 ans

README.md

peertube(8) -- companion CLI for PeerTube

SYNOPSIS

peertube [command] [options]

DESCRIPTION

peertube wraps various utilities around PeerTube that are used either on a running local, running remote, or cold local instance.

COMMANDS

Unless otherwise specified, every command can be queried for its own help or manual by passing its name to the help command, or by using the --help option.

auth [action]: stores credentials for your accounts on remote instances, so that you don't need to pass them at every command

upload|up: upload a video to a remote instance

$ peertube upload \
    -u "PEERTUBE_URL" \
    -U "PEERTUBE_USER" \
    --password "PEERTUBE_PASSWORD"

import-videos|import: import a video from a streaming platform to a remote instance

$ peertube import \
    -u "PEERTUBE_URL" \
    -U "PEERTUBE_USER" \
    --password "PEERTUBE_PASSWORD" \
    -t "TARGET_URL"

The target URL can be directly the video file, or any of the supported sites of youtube-dl. The video is downloaded locally and then uploaded. Already downloaded videos will not be uploaded twice, so you can run and re-run the script in case of crash, disconnection…

watch|w: watch a video in the terminal ✩°。⋆

-g, --gui <player>      player type (default: ascii)
-i, --invert            invert colors (ascii player only)
-r, --resolution <res>  video resolution (default: 720)

It provides support for different players:

- ascii (default ; plays in ascii art in your terminal!)
- mpv
- mplayer
- vlc
- stdout
- xbmc
- airplay
- chromecast

repl: interact with the application libraries and objects even when PeerTube is not running

Type .help to see the repl-only functions, or to see the available PeerTube core functions:

repl> lodash.keys(context)

help [cmd]: display help for [cmd]

EXAMPLES

$ peertube auth add -u "PEERTUBE_URL" -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD"
$ peertube up <videoFile>
$ peertube watch https://peertube.cpy.re/videos/watch/e8a1af4e-414a-4d58-bfe6-2146eed06d10

SEE ALSO

PeerTube Tools Documentation

PeerTube Admin Documentation

REPORTING BUGS

See PeerTube repository.