file list, file get, file upload, file download, and file delete. Run atlanai doctor and atlanai auth status first. Authentication failures and workspace context issues are the most common causes.
file list returns an empty result
The active workspace has no file artifacts, or the workspace context points to the wrong workspace.
Cause
The CLI resolves file listing against the active workspace context. If the context points to a workspace with no files, or to the wrong workspace, the result is empty.Solution
Confirm the active workspace before investigating further.- Run
atlanai context showto confirm the active workspace. - Switch with
atlanai context useif the context points to the wrong workspace, or pass--workspace <id>explicitly. - Rerun
file list.
file get returns “not found”
The file ID does not exist in the active workspace, or the file has been archived.
Cause
The ID was entered incorrectly, belongs to a different workspace, or the file has been archived. Archived files do not appear in the default listing.Solution
Verify the file ID before retrying.- Run
atlanai file listto find the correct file ID. - If the file was archived, contact your workspace administrator to restore it.
Upload rejected with “duplicate path”
A file with the same published path already exists in the workspace.Cause
The--as value resolves to a path that is already occupied. The CLI does not overwrite existing files silently.
Solution
Resolve the path conflict before uploading.- Choose a different
--asvalue, or archive the existing file withatlanai file delete file_123. - Rerun the upload.
Permission denied on upload
The authenticated account does not have write access to the target workspace.Cause
Upload requires write permission on the workspace. Read-only accounts and viewers receive a permission error.Solution
Confirm your access level before retrying.- Run
atlanai workspace listto confirm the workspace and your access level. - Ask your workspace administrator to grant upload permission.
- Retry the upload after the permission is updated.
Binary download fails without --output
The CLI declines to write binary content to the terminal.
Cause
Binary file types cannot be safely written to stdout. The CLI requires an explicit output path for binary downloads and exits without writing content.Solution
Rerun the command with the output flag set.- Rerun
file downloadwith--output ./filename.extto write the file locally.
Download stops before completion
The file is larger than the 64 MiB download limit.Cause
file download enforces a 64 MiB cap. Files above this limit cannot be fully downloaded through the CLI.
Solution
Contact Atlan support to retrieve files above the size limit.Version not found
The version number does not exist for this file.Cause
The version ordinal passed to--version is out of range for the file’s published history.
Solution
List available versions before retrying the download.- Run
atlanai file versions file_123to list all available versions. - Confirm the correct ordinal for the intended snapshot.
- Rerun the download with the correct
--versionvalue.
Archive targets the wrong file
The wrong file ID was passed toatlanai file delete.
Cause
File IDs can look similar. Passing the wrong ID archives a file that was not intended to be removed.Solution
Confirm the file before archiving.- Run
atlanai file get file_123to confirm the published path and workspace. - Verify this is the intended file before proceeding.
- Run
atlanai file delete file_123only after confirming the correct ID. Archiving cannot be reversed through the CLI. Contact your workspace administrator to restore an archived file.
Command fails with an authentication error
The stored credential has expired.Cause
CLI credentials have a time-to-live. An expired token causes authentication errors on any command that contacts the Registry.Solution
Re-authenticate and confirm the session is valid.- Run
atlanai auth loginto re-authenticate. - Confirm the session is active with
atlanai auth status. - Retry the command.
See also
- Find and inspect files: List file artifacts and inspect records.
- Upload files: Upload a new file or replace an existing one.
- Download files: Download the current or a specific version.
- Archive files: Remove a file from default discovery.
- Run diagnostics: Inspect installation, daemon logs, and authentication state.