I have tried to retrieve all profiles from my org to make a backup and it gives an error
I have tried as
sf crud-mdapi read --metadata "Profile" -o DEV
or
sf crud-mdapi read --metadata "Profile:*" -o DEV
and both gave me this response
reading Profile:*, Profile:Admin ...
Error (1): Failed to retrieve Profile:*
My workaround is this
sf project retrieve start --metadata "Profile" -o DEV # to get the list
sf crud-mdapi read --source-dir force-app/main/default/profiles -o DEV # to get the full profile
Is there a way to detect the profile list from org and download them all, for a periodic backup?
Usually I use an empty profile folder so I can track added or removed profiles too.