datalake command group.
Choose the destination
These examples use your active profile and saved project context. Check the destination before uploading:project/uploads/example.csv refers to the selected project’s Data Lake area. shared/ addresses shared storage, subject to access. legacy/ is read-only. Bare paths are interpreted relative to project/; they do not address historical root-level blobs. The CLI rejects .. segments and writes targeting another project’s projects/PROJECT_ID/ namespace, where PROJECT_ID is that other project’s identifier.
Plan and upload one file
Choose a new destination and replace./example.csv with an existing local file. Review its path and size in the plan before executing:
ok, uploaded_count, and uploads, then verify the remote listing. Do not treat a failed or interrupted upload as proof that no bytes were stored. Check the destination before repeating it.
For a directory, relative file paths are preserved below the remote prefix. The local directory must contain at least one file:
--dry-run. Choose only files intended for that project. Upload transport options are documented in tp datalake upload-dir --help and the command reference.
Inspect directories and files
tree lists child directories; list includes files and directories. Start with the directory you want to inspect:
items and may contain a continuation token. Inspect the actual token field (continuationToken or continuation_token) before requesting another page:
--limit, --offset, and --path-contains shape the fetched records locally; a local limit does not request a backend page of that size or prove the directory has only that many entries. Advance the local offset to inspect the rest of a fetched page before following its continuation token.
For a complete inventory, list --all follows continuation pages. It fetches all pages before applying local limits, so avoid it for an initial exploratory read. --format jsonl emits one item per line and omits the surrounding page metadata; use ordinary JSON while discovering continuation tokens.
Preview or resolve a selected path
Copy an exact path from the listing:--output; this saves the raw preview response and does not promise the original file or a full-file download:
resolve-uri returns fields including abfss_uri, logical_path, physical_path, and scope. Inspect the returned URI for downstream tools that support ADLS; resolution does not transfer file contents or grant those tools access.