File operations use sandbox-specific ingress, commonly seen as
https://<sandbox-id-or-name>.sandbox.tensorlake.ai, derived from the sandbox’s ingress_endpoint.Named sandboxes can use the sandbox name in place of the ID in the proxy hostname. The file APIs documented here run on the management URL on port 9501, which always requires authentication. Unauthenticated proxy access applies only to exposed user ports.Copy Files
- CLI
- Python
- TypeScript
- HTTP
tl sbx cp is file-only today. Directory copy workflows should use the Python SDK, TypeScript SDK, or the raw file API.
Read Files
- CLI
- Python
- TypeScript
- HTTP
Write Files
- CLI
- Python
- TypeScript
- HTTP
List Directory Contents
- CLI
- Python
- TypeScript
- HTTP
Delete Files
- CLI
- Python
- TypeScript
- HTTP
Organize Files
- CLI
- Python
- TypeScript
- HTTP
Best Practices
- Use
/workspaceas the default directory for application files. - Use absolute paths to avoid ambiguity.
- Use
write_file/read_filefor programmatic access. - Use
tl sbx cpfor single-file transfers. - Use the Python SDK, TypeScript SDK, or raw file API for directory-oriented workflows.
Learn More
Commands
Execute commands in sandboxes.
Snapshots
Save and restore sandbox filesystem, memory, and running processes.
Lifecycle
Sandbox states, resources, and timeouts.