files Commands

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]
[--loglevel LOGLEVEL]
[-y]
--filestocopy FILESTOCOPY
--dirstocopy DIRSTOCOPY
--copysourcepath COPYSOURCEPATH

Parameters

--json
Optional

Format output as JSON.

Type: boolean
--loglevel LOGLEVEL
Optional

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 | --prompt
Optional

If there is a file difference detected, prompt before overwriting file.

Type: boolean
--filestocopy FILESTOCOPY
Required

Array of individual files to copy located directly in source directory.

Type: array
--dirstocopy DIRSTOCOPY
Required

Array of directories (including their contents) located in source directory to copy.

Type: array
--copysourcepath COPYSOURCEPATH
Required

Base path for files and directories to be copied from.

Type: string