bdy sandbox cp
$bdy sandbox cp [options] <source> <destination>
Copy files and directories between the local machine and a sandbox (downloading needs only SANDBOX_READ, uploading SANDBOX_WRITE) Required scopes: SANDBOX_READ, SANDBOX_WRITE
Examples
Copy file from sandbox to local directory with a new name
bdy sb cp sandbox-identifier:/path/to/file /path/to/dir/name$If local path file already exists you must replace it
bdy sb cp sandbox-identifier:/path/to/file /path/to/dir/name --replace$Copy file from sandbox INTO local directory
bdy sb cp sandbox-identifier:/path/to/file /path/to/dir/$If local directory already exists you must merge it or replace it
bdy sb cp sandbox-identifier:/path/to/file /path/to/dir/ --merge$If local directory already exists you must merge it or replace it
bdy sb cp sandbox-identifier:/path/to/file /path/to/dir/ --replace$Copy directory from sandbox to local directory with a new name
bdy sb cp sandbox-identifier:/path/to/dir /path/to/dir$If local directory already exists you must replace it
bdy sb cp sandbox-identifier:/path/to/dir /path/to/dir --replace$Copy directory from sandbox INTO local directory
bdy sb cp sandbox-identifier:/path/to/dir /path/to/dir/$If local directory already exists you must merge it or replace it
bdy sb cp sandbox-identifier:/path/to/dir /path/to/dir/ --merge$If local directory already exists you must merge it or replace it
bdy sb cp sandbox-identifier:/path/to/dir /path/to/dir/ --replace$Copy local file to sandbox with a new name
bdy sb cp /path/to/file sandbox-identifier:/path/to/dir/name$Copy local file into sandbox directory
bdy sb cp /path/to/file sandbox-identifier:/path/to/dir/$Copy contents of local directory to sandbox directory
bdy sb cp /path/to/dir sandbox-identifier:/path/to/dir$Copy local directory into sandbox directory
bdy sb cp /path/to/dir sandbox-identifier:/path/to/dir/$Upload a directory while ignoring globs (repeat --ignore for multiple patterns)
bdy sb cp /path/to/dir sandbox-identifier:/path/to/dir --ignore "node_modules/**" "**/*.log" ".git/**"$