How can a working app be cloned on the local machine?

Hello,

I had a problem with my local machine after I deployed my application in the cloud.

Can I clone the working app from the cloud to my local machine?

I.e., what is the equivalent of?

heroku git:clone -a myapp