kub-dataset: DVC and Authentication
1. Purpose
This page covers:
-
DVC initialization and status commands
-
Authentication commands for configured Keycloak providers
-
--dvcintegration used with dataset pulls
For full CLI details, see kub-dataset: Full Reference.
2. DVC Commands
3. Authentication Commands
kub-dataset login --provider <provider-id> [--username <user> --password <pass>] [--timeout <seconds>]
kub-dataset logout [--provider <provider-id>|--all]
kub-dataset whoami [-v]
4. Pull with DVC Tracking
Use --dvc in pull commands to generate .dvc tracking files and update ignore rules.
# Location dataset pull with tracking
kub-dataset pull kernante --version 0.98.0 --dvc --api-key $GIRDER_API_KEY
# Simulator pull with tracking
kub-dataset pull-simulator --version 0.1.0 --dvc --force
5. Recommended Workflow
# 1) One-time setup
kub-dataset init
git add .dvc .dvcignore
git commit -m "Initialize DVC"
# 2) Pull tracked datasets
kub-dataset pull kernante --version 0.98.0 --dvc --force
kub-dataset pull-simulator --version 0.1.0 --dvc --force
# 3) Check and commit tracking files
kub-dataset status
git add cemdb/locations/*.dvc cemdb/simulators/**/*.dvc cemdb/**/.gitignore
git commit -m "Track KUB datasets with DVC"