xiaoqianran/kaggle-demo / skills
kaggle-cli
VerifiedUse the local Kaggle CLI skill for command guidance, workflows, and troubleshooting across competitions, datasets, kernels/notebooks, models, model variations and versions, inbox file uploads, forums/discussions, benchmarks, configuration, OAuth/API-token authentication, and accelerator quota. Activate this skill when the user asks about kaggle CLI commands, examples, flags, metadata files, download/upload flows, submissions, benchmark tasks, or Kaggle CLI behavior.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.2 KB |
| references/auth.md | markdown | 3.5 KB |
| references/benchmarks.md | markdown | 25.1 KB |
| references/competitions.md | markdown | 11.3 KB |
| references/configuration.md | markdown | 2.7 KB |
| references/datasets.md | markdown | 7.5 KB |
| references/files.md | markdown | 2.0 KB |
| references/forums.md | markdown | 2.9 KB |
| references/kernels.md | markdown | 6.0 KB |
| references/model_variations.md | markdown | 4.2 KB |
| references/model_variations_versions.md | markdown | 3.5 KB |
| references/models.md | markdown | 4.8 KB |
| references/quota.md | markdown | 1.2 KB |
| references/search.md | markdown | 2.4 KB |
references/model_variations_versions.md
View on GitHub# Model Variation Versions CLI Reference
Use `kaggle models variations versions` to manage numbered snapshots of a model
variation's files. The CLI also accepts nested alias `v` under variations.
## Prerequisites
- Python 3.11+ with the `kaggle` package installed.
- Kaggle credentials for private model variations and mutation commands.
- An existing model variation in `<owner>/<model>/<framework>/<variation>` form.
## Command Hierarchy
```text
kaggle models variations versions (alias under variations: v)
├── list
├── create
├── download
├── files
└── delete
```
Note: do not recommend `kaggle models variations versions init`; use
`kaggle models variations init` to create variation metadata.
## `kaggle models variations versions list`
Lists versions for a model variation.
**Usage:**
```bash
kaggle models variations versions list <MODEL_VARIATION> [options]
```
**Options:**
- `--page-size <SIZE>`: Page size, default 20.
- `--page-token <TOKEN>`: Page token.
- `-v, --csv`: Print CSV.
**Examples:**
```bash
kaggle models variations versions list google/gemma/pytorch/7b -v
```
**Purpose:** Inspect available numbered versions before selecting one.
## `kaggle models variations versions create`
Creates a new version for a model variation.
**Usage:**
```bash
kaggle models variations versions create <MODEL_VARIATION> [options]
```
**Options:**
- `-p, --path <FOLDER>`: Folder containing files for the new version.
- `-n, --version-notes <NOTES>`: Version notes.
- `-q, --quiet`: Suppress progress output.
- `-r, --dir-mode <skip|zip|tar>`: Directory handling. Default `skip`.
**Examples:**
```bash
kaggle models variations versions create owner/model/jax/main -p tmp -n "Updated files" -q -r skip
```
**Purpose:** Upload a new file snapshot for an existing variation.
## `kaggle models variations versions download`
Downloads files for a specific variation version.
**Usage:**
```bash
kaggle models variations versions download <MODEL_VARIATION_VERSION> [options]
```
**Arguments:**
- `<MODEL_VARIATION_VERSION>`:
`<owner>/<model>/<framework>/<variation>/<version-number>`.
**Options:**
- `-p, --path <PATH>`: Download folder.
- `--untar`: Untar the downloaded archive and delete the tar file.
- `-f, --force`: Force download.
- `-q, --quiet`: Suppress progress output.
**Examples:**
```bash
kaggle models variations versions download google/gemma/pytorch/7b/2 -p models --untar
```
**Purpose:** Retrieve files for a specific version.
## `kaggle models variations versions files`
Lists files for a specific variation version.
**Usage:**
```bash
kaggle models variations versions files <MODEL_VARIATION_VERSION> [options]
```
**Options:**
- `--page-size <SIZE>`: Page size, default 20.
- `--page-token <TOKEN>`: Page token.
- `-v, --csv`: Print CSV.
**Examples:**
```bash
kaggle models variations versions files google/gemma/pytorch/7b/2 -v --page-size 3
```
**Purpose:** Inspect files inside a numbered version.
## `kaggle models variations versions delete`
Deletes a model variation version.
**Usage:**
```bash
kaggle models variations versions delete <MODEL_VARIATION_VERSION> [options]
```
**Options:**
- `-y, --yes`: Skip confirmation.
**Examples:**
```bash
kaggle models variations versions delete owner/model/jax/main/2 -y
```
**Purpose:** Remove a specific version snapshot.
## Notes
- Version handles use
`<owner>/<model-name>/<framework>/<variation-slug>/<version-number>`.
- Directory uploads follow `--dir-mode`; `skip` ignores directories, `zip`
compresses them, and `tar` uploads an uncompressed archive.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |