lakeFS CLI
$ lakectl Official Med RisklakeFS CLI (lakectl) brings Git-style branching, committing, merging, and object transfers (lakectl fs) to S3, GCS, and Azure Blob data lakes used in ML training and RAG pipelines. It ships as a fast static Go binary, though most listing commands emit text tables rather than universal --json.
brew install lakefs lakectl fs streams large local training files directly to/from lakeFS object storage branches without routing binary payloads through MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Fast Go CLI with LAKECTL_* env-var config and non-interactive flags, though most list/diff commands emit text tables instead of a global --json flag.
- Supports
LAKECTL_CREDENTIALS_*andLAKECTL_SERVER_ENDPOINT_URLenv vars - No universal
--jsonflag acrossrepo list,branch list, ordiff
Zero-copy branching enables safe isolated experiments and confirmation prompts guard deletes, though fs rm and branch delete lack --dry-run.
- Zero-copy
branch createisolates experiments frommain - Destructive commands require confirmation unless
-yis passed
Single static Go binary available via Homebrew (treeverse/lakeFS/lakefs) and GitHub Releases on macOS, Linux, and Windows.
- Single static Go binary with zero runtime dependencies
Full Git-like data lake operations (repo, branch, commit, merge, diff, fs) in one binary.
- Covers Git-style versioning and S3-compatible object transfers
Official Treeverse repository (treeverse/lakeFS) under Apache-2.0.
- Official
treeverse/lakeFSrepository under Apache-2.0
Comprehensive CLI reference at docs.lakefs.io/reference/cli.html with clear URI syntax.
- Official CLI reference at docs.lakefs.io
Security, Auth & Guardrails
Reads ~/.lakectl.yaml (via --config) or LAKECTL_CREDENTIALS_ACCESS_KEY_ID, LAKECTL_CREDENTIALS_SECRET_ACCESS_KEY, and LAKECTL_SERVER_ENDPOINT_URL env vars.
Apache-2.0 open-source CLI and core server; object storage (S3/GCS/Azure) and lakeFS Cloud/Enterprise tiers carry separate costs.
# lakeFS CLI (lakectl) Agent Rules - Work on isolated feature branches (`lakectl branch create`) rather than committing directly to `main`. - Configure credentials via `LAKECTL_*` env vars or `--config` instead of interactive `lakectl config`. - Never pass `-y` to `lakectl branch delete` or `lakectl repo delete` without explicit user confirmation.
Agent-Ready Command Recipes
Safe Read-Only Queries
lakectl repo list
Lists accessible lakeFS repositories and their default branches.
lakectl diff lakefs://my-repo/main lakefs://my-repo/exp-branch
Shows object-level additions, modifications, and deletions between two branches.
Controlled Writes & Previews
lakectl branch create lakefs://my-repo/exp-1 --source lakefs://my-repo/main
Creates a zero-copy branch from main without altering production data.
Strengths for Agents
- + Fast single Go binary with Git-like zero-copy branching (
lakectl branch create) for safe AI dataset experiments. - + Clean
LAKECTL_*environment variable overrides for headless CI and agent sandboxes.
Caveats & Pitfalls
- ! Most standard listing and
diffsubcommands output human-readable tables rather than JSON. - ! No global
--dry-runflag onlakectl fs rmorlakectl branch delete.