You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The type of repo to upload to. Defaults to model. You can also prefix the repo name with the type, e.g. datasets/username/repo-name",
84
83
},
@@ -126,9 +125,8 @@ const commands = {
126
125
{
127
126
name: "repo-type" as const,
128
127
enum: ["dataset", "model", "space"],
129
-
default: "model",
130
128
description:
131
-
"The type of repo to create. Defaults to model. You can also prefix the repo name with the type, e.g. datasets/username/repo-name",
129
+
"The type of the repo to create the branch into. Defaults to model. You can also prefix the repo name with the type, e.g. datasets/username/repo-name",
132
130
},
133
131
{
134
132
name: "revision" as const,
@@ -173,7 +171,6 @@ const commands = {
173
171
{
174
172
name: "repo-type" as const,
175
173
enum: ["dataset", "model", "space"],
176
-
default: "model",
177
174
description:
178
175
"The type of repo to delete the branch from. Defaults to model. You can also prefix the repo name with the type, e.g. datasets/username/repo-name",
179
176
},
@@ -187,6 +184,35 @@ const commands = {
187
184
},
188
185
},
189
186
} satisfies CommandGroup,
187
+
repo: {
188
+
description: "Manage repositories on the Hub",
189
+
subcommands: {
190
+
delete: {
191
+
description: "Delete a repository from the Hub",
192
+
args: [
193
+
{
194
+
name: "repo-name" as const,
195
+
description:
196
+
"The name of the repo to delete. You can also prefix the repo name with the type, e.g. datasets/username/repo-name",
197
+
positional: true,
198
+
required: true,
199
+
},
200
+
{
201
+
name: "repo-type" as const,
202
+
enum: ["dataset", "model", "space"],
203
+
description:
204
+
"The type of the repo to delete. Defaults to model. You can also prefix the repo name with the type, e.g. datasets/username/repo-name",
205
+
},
206
+
{
207
+
name: "token" as const,
208
+
description:
209
+
"The access token to use for authentication. If not provided, the HF_TOKEN environment variable will be used.",
0 commit comments