GH-CODESPACE-CP(1) GitHub CLI manual GH-CODESPACE-CP(1) (NAME) gh-codespace-cp - (SYNOPSIS) gh codespace cp [-e] [-r] [-- [...]] ... (DESCRIPTION) cp . cp . --recursive . remote: (Codespace) . . . --expand, scp Bash (tilde) (globs) . . cp ssh / ~/.ssh . (OPTIONS) -c, --codespace -e, --expand -p, --profile SSH -r, --recursive -R, --repo (user/repo) --repo-owner ( ) (EXIT CODES) 0: 1: 2: 4: : . . (EXAMPLES) $ gh codespace cp -e README.md 'remote:/workspaces/$RepositoryName/' $ gh codespace cp -e 'remote:~/*.go' ./gofiles/ $ gh codespace cp -e 'remote:/workspaces/myproj/go.{mod,sum}' ./gofiles/ $ gh codespace cp -e -- -F ~/.ssh/codespaces_config 'remote:~/*.go' ./gofiles/ (SEE ALSO) gh-codespace(1) Sep 2026 GH-CODESPACE-CP(1)