Dvc get S3 credentials

Hi,

I would like to download a tracked dataset from outside my dataset repo with this command:
dvc get git@gitlab.XXXX.com:XXX/XXXX.git datasets/XXXX/v1.0

Cloning the repo works well, but I got this error:
ERROR: unexpected error - failed to load directory (‘datasets’, ‘XXXX’, ‘v1.0’): Unable to locate credentials

The point is that the credentials are stored in the .dvc/config file of the dataset repo. It works well when using dvc pull commands.

How can I configure dvc to use the cloned repo credentials when I do a dcv get command ?

You can add credentials and other remote info with dvc get --remote-config. See an example in get.