Copy
Copy between local, Studios, Drive.
Every lit:// URL must include a resource root at the start of its drive path that tells Lightning where to send the file. There is no default - a URL without a root will fail.
- URL formats:
Studios: lit://<owner>/<teamspace>/studios/<studio-name>/<path> Teamspace drives: lit://<owner>/<teamspace>/uploads/<path> Current teamspace (relative): lit:///<resource-root>/<path>
Usage:
lightning cp [OPTIONS] SOURCE [DESTINATION]Arguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
Source path to copy. |
|
|
no |
Optional destination path. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
— |
no |
|
Copy directories recursively |
|
|
no |
— |
Cloud account to store uploads on. Where one is needed, defaults to the current cloud account (LIGHTNING_CLUSTER_ID) or the teamspace’s default cloud account. |
Examples
lightning cp source.txt lit://<owner>/<my-teamspace>/studios/<my-studio>/destination.txt
lightning cp -r source_folder/ lit://<owner>/<my-teamspace>/studios/<my-studio>/destination_folder/
lightning cp source.txt lit://<owner>/<my-teamspace>/uploads/destination.txt
lightning cp source.txt lit:///uploads/destination.txt
lightning cp -r source_folder/ lit:///studios/<my-studio>/destination_folder/Was this page helpful?
Thanks for the feedback.