kaggle
CLI for Kaggle, a data science competition platform
TLDR
Download competition files
SYNOPSIS
kaggle command subcommand [options]
DESCRIPTION
kaggle is the CLI for Kaggle, a data science competition platform. It manages competition data, datasets, notebooks, and models.
Authentication requires API credentials from kaggle.com/account. Place kaggle.json in ~/.kaggle/ with proper permissions (chmod 600).
Competition workflow: download gets data files, work locally, submit uploads predictions. leaderboard shows standings; submissions lists your entries.
Datasets are versioned. download gets current version; create initializes new dataset; version adds updates. init generates dataset-metadata.json for new datasets.
Kernels (notebooks) can be pushed to Kaggle for cloud execution. pull downloads notebooks; push uploads with kernel-metadata.json defining runtime settings.
PARAMETERS
-c, --competition name
Competition name.-d, --dataset name
Dataset in owner/dataset format.-m, --message text
Submission message.-f, --file path
File to submit or upload.-p, --path directory
Local directory path.-o, --output directory
Download output directory.--unzip
Unzip downloaded files.-s, --search term
Search term for listings.--sort-by field
Sort results by field.
COMMANDS
competitions list|files|download|submit|submissions|leaderboard
Manage competition data and submissions.datasets list|files|download|create|version|init|metadata|status
Browse and manage datasets.kernels list|init|push|pull|output|status
Manage notebooks (kernels).models list|get|files|download
Access Kaggle models.config view|set|unset
Manage configuration.
CAVEATS
Requires Kaggle account and API key. Some competitions have acceptance terms. Large datasets may take time to download. API rate limits apply. Dataset uploads need metadata file.
HISTORY
Kaggle was founded by Anthony Goldbloom and Ben Hamner in 2010 as a platform for predictive modeling competitions. Acquired by Google in 2017. The CLI was added to enable programmatic access to platform resources. Kaggle expanded to include datasets, notebooks, and courses. It hosts one of the largest data science communities with millions of members.
