-
Notifications
You must be signed in to change notification settings - Fork 0
/
readmeText.txt
183 lines (123 loc) · 4.71 KB
/
readmeText.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
youtube-cli
================
Manage youtube data through CLI
<!-- toc -->
* [Requirements](#requirements)
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Requirements
## Turn on the YouTube Data api
Walk through the steps in [Turn on the YouTube Data api here.](https://developers.google.com/youtube/v3/quickstart/nodejs#step_1_turn_on_the)
## Airtable Fields
Add the following fields into the Airtable :
![Airtable Fields](https://raw.githubusercontent.com/dabblelab/youtube-cli/master/airtable-structure.png)
# Usage
```sh-session
USAGE
$ youtube
...
```
# Commands
<!-- commands -->
_Init And Profile_
* [`youtube init:profile`](#youtube-initprofile)
* [`youtube init:airtable`](#youtube-initairtable)
* [`youtube profile:list`](#youtube-profilelist)
* [`youtube profile:remove`](#youtube-profileremove)
_Playlist And Items_
* [`youtube playlist:list`](#youtube-playlistlist)
* [`youtube playlist:items:delete`](#youtube-playlistitemsdelete)
* [`youtube playlist:items:export`](#youtube-playlistitemsexport)
* [`youtube playlist:items:update`](#youtube-playlistitemsupdate)
* [`youtube playlist:items:upload`](#youtube-playlistitemsupload)
# 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](https://github.com/dabblelab/youtube-cli/blob/master/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](https://github.com/dabblelab/youtube-cli/blob/master/src/commands/init/airtable.js)_
## `youtube profile:list`
List YouTube profiles
```
USAGE
$ youtube profile:list
```
_See code: [src/commands/profile/list.js](https://github.com/dabblelab/youtube-cli/blob/master/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](https://github.com/dabblelab/youtube-cli/blob/master/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](https://github.com/dabblelab/youtube-cli/blob/master/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](https://github.com/dabblelab/youtube-cli/blob/master/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](https://github.com/dabblelab/youtube-cli/blob/master/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](https://github.com/dabblelab/youtube-cli/blob/master/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](https://github.com/dabblelab/youtube-cli/blob/master/src/commands/playlist/items/upload.js)_
<!-- commandsstop -->