Skip to Content
We are live but in Staging 🎉
CLI GuideSource and Credential Commands

Source and Credential Commands

This domain covers source creation and credential/OAuth commands.

Source Commands

Command group: dodil k3 source

Current CLI surface is minimal and supports create only.

Persistent flag:

  • --bucket, -b (required by command behavior)
SubcommandArgsImportant flags
create<name>--bucket, -b

Example:

dodil k3 source create contracts-source --bucket kb-dev

Credential Commands

Command group: dodil k3 credential (alias: cred)

SubcommandArgsImportant flags
store<display-name>none
oauth-urlnone--provider-id, -p
oauth-exchangenone--provider-id, --code, --redirect-uri, --state, --source-id, --display-name

Flag Details

FlagRequiredMeaning
--provider-idyes for OAuth commandsProvider identifier (normalized internally)
--codeyes for oauth-exchangeOAuth authorization code
--redirect-urinoRedirect URI used in auth request
--statenoCSRF/trace state value
--source-idnoAttach credential to a source
--display-namenoFriendly credential name

Examples

dodil k3 credential store "ceph-primary" dodil k3 credential oauth-url --provider-id google_drive -o json dodil k3 credential oauth-exchange \ --provider-id google_drive \ --code "<oauth_code>" \ --redirect-uri "https://app.example.com/k3/oauth/callback" \ --display-name "gdrive-main"

Provider ID Input Tips

Provider IDs are normalized (case-insensitive, dashes become underscores), so all of these map cleanly:

  • google_drive
  • GOOGLE-DRIVE
  • source_provider_google_drive

Common Use Cases

  1. Quick source creation for internal S3/default ingest path.
  2. OAuth onboarding before creating rich external source definitions via API.
  3. Credential rotation and validation workflows.

Next: Pipeline, Template, and Ingest Commands