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,7 +125,6 @@ const commands = {
126
125
{
127
126
name: "repo-type" as const,
128
127
enum: ["dataset", "model", "space"],
129
-
default: "model",
130
128
description:
131
129
"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",
132
130
},
@@ -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 full ID of the repo to delete (e.g., 'username/my-model', 'datasets/username/my-data', or 'spaces/username/my-space')",
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 repo. If the repo-name is prefixed (e.g. 'datasets/my-dataset'), the type is inferred. This option can be used to override or specify the type if the name is not prefixed.",
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