Manage youtube data through CLI
Walk through the steps in Turn on the YouTube Data api here.
Add the following fields into the Airtable :
USAGE
$ youtube
...
Init And Profile
Playlist And Items
youtube playlist:list
youtube playlist:items:delete
youtube playlist:items:export
youtube playlist:items:update
youtube playlist:items:upload
Create YouTube profile
USAGE
$ youtube init:profile
OPTIONS
-n, --name=name name of the profile
See code: src/commands/init/profile.js
Update profile with Airtable credential
USAGE
$ youtube init:airtable
OPTIONS
-n, --name=name name of the profile
See code: src/commands/init/airtable.js
List YouTube profiles
USAGE
$ youtube profile:list
See code: src/commands/profile/list.js
Remove YouTube profile
USAGE
$ youtube profile:remove
OPTIONS
-n, --name=name name of the profile to remove
See code: src/commands/profile/remove.js
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
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
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
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
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