files Commands
-
Copy files from source to destination folder .commerce.
commerce:files:copy
Copy files from source to destination folder .commerce.
Examples for commerce:files:copy
sfdx commerce:files:copy -y --copySourcePath ”~/myexamplefilesdirectory” --filestocopy “file1.txt,file2.txt” --dirstocopy “dir1,dir2,dir3”
sfdx commerce:files:copy --prompt --copySourcePath ”~/myexamplefilesdirectory” --filestocopy “file1.txt,file2.txt” --dirstocopy “dir1,dir2,dir3”
sfdx commerce:files:copy --copySourcePath ”~/myexamplefilesdirectory” --filestocopy “file1.txt,file2.txt” --dirstocopy “dir1,dir2,dir3”
Command Syntax
sfdx commerce:files:copy[
--json][
--loglevelLOGLEVEL][
-y]--filestocopyFILESTOCOPY--dirstocopyDIRSTOCOPY--copysourcepathCOPYSOURCEPATH
Parameters
--jsonOptional
Format output as JSON.
Type: boolean
--loglevelLOGLEVELOptional
The logging level for this command invocation. Logs are stored in $HOME/.sfdx/sfdx.log.
Type: enum
Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
Default value: warn
-y|--promptOptional
If there is a file difference detected, prompt before overwriting file.
Type: boolean
--filestocopyFILESTOCOPYRequired
Array of individual files to copy located directly in source directory.
Type: array
--dirstocopyDIRSTOCOPYRequired
Array of directories (including their contents) located in source directory to copy.
Type: array
--copysourcepathCOPYSOURCEPATHRequired
Base path for files and directories to be copied from.
Type: string