Skip to content

dabblelab/youtube-cli

Repository files navigation

youtube-cli

Manage youtube data through CLI

Requirements

Turn on the YouTube Data api

Walk through the steps in Turn on the YouTube Data api here.

Airtable Fields

Add the following fields into the Airtable :

Airtable Fields

Usage

USAGE
  $ youtube
...

Commands

Init And Profile

Playlist And Items

Usage

youtube init:profile

Create YouTube profile

USAGE
  $ youtube init:profile

OPTIONS
  -n, --name=name  name of the profile

See code: src/commands/init/profile.js

youtube init:airtable

Update profile with Airtable credential

USAGE
  $ youtube init:airtable

OPTIONS
  -n, --name=name  name of the profile

See code: src/commands/init/airtable.js

youtube profile:list

List YouTube profiles

USAGE
  $ youtube profile:list

See code: src/commands/profile/list.js

youtube profile:remove

Remove YouTube profile

USAGE
  $ youtube profile:remove

OPTIONS
  -n, --name=name  name of the profile to remove

See code: src/commands/profile/remove.js

youtube playlist:list

List of all playlist

USAGE
  $ youtube playlist:list

OPTIONS
  -p, --profile=profile  [default: default] Name of profile that associated YouTube Data API credential

See code: src/commands/playlist/list.js

youtube playlist:items:delete

Delete item from playlist

USAGE
  $ youtube playlist:items:delete

OPTIONS
  -p, --profile=profile  [default: default] Name of profile that associated YouTube Data API credential
  --playlist=playlist    (required) Playlist ID from which item to be deleted

See code: src/commands/playlist/items/delete.js

youtube playlist:items:export

Export all playlists items

USAGE
  $ youtube playlist:items:export

OPTIONS
  -p, --profile=profile  [default: default] Name of profile that associated YouTube Data API credential
  -s, --source=source    [default: file] Export playlist items to file or airtable(file|airtable)
  --playlist=playlist    [default: all] Playlist Id (id | all)

See code: src/commands/playlist/items/export.js

youtube playlist:items:update

Update all playlists items

USAGE
  $ youtube playlist:items:update

OPTIONS
  -p, --profile=profile      [default: default] Name of profile that associated YouTube Data API credential
  -s, --source=source        (required) Export playlist items from file or airtable(<file path>|airtable)
  -t, --thumbnail=thumbnail  Video thumbnail(<thumbnail-file-path>)

See code: src/commands/playlist/items/update.js

youtube playlist:items:upload

Upload item into playlist

USAGE
  $ youtube playlist:items:upload

OPTIONS
  -m, --media=media          (required) Playlist items media/video path <media-file-path>
  -p, --profile=profile      [default: default] Name of profile that associated YouTube Data API credential
  -s, --schema=schema        (required) Playlist items schema path <schema-file-path>
  -t, --thumbnail=thumbnail  Video thumbnail(<thumbnail-file-path>)
  --playlist=playlist        (required) Playlist ID to which item to be uploaded

See code: src/commands/playlist/items/upload.js