Skip to content
← Back to Community
Shell access
Profile icon
h
has Hacker Plan
SidneyShapiro

Is it possible to get shell access to all my repls? I am trying to download them all and move them to github. Thanks!

Voters
Profile icon
SLMJ
Profile icon
SidneyShapiro
Comments
hotnewtop
Profile icon
SixBeeps

Nope, but it's a feature that's been asked for for a while now. I can only presume they'll add it at some point, but /shrug

Profile icon
Coder100

hi, if you have explorer, you can click on the shell tab:

image

Profile icon
SidneyShapiro

@Coder100 I am in the shell but I cant get into a folder with my other repls
Screen Shot 2021-11-04 at 5.20.41 PM

Profile icon
Coder100

no you can't you have to go to that other repl @SidneyShapiro

Profile icon
SidneyShapiro

@Coder100 so there is no way to download or zip all content from my account?

Profile icon
Coder100

nope not in one repl @SidneyShapiro

Profile icon
SixBeeps

@Coder100 Did you even read the question? smh

Profile icon
Coder100

i suppose you could install them individually but as they have clarified they want to zip it all in one place @SixBeeps

Profile icon
SidneyShapiro

@Coder100 I have about 5000 repls, so thats probably going to be very time consuming

Profile icon
MarcusWeinberger
Profile icon
SidneyShapiro

@MarcusWeinberger Thanks, it did not seem to work for me. The only file that downloaded was account.json not the repls

Profile icon
CoolCoderSJ

@MarcusWeinberger @SidneyShapiro This no longer works, they've added authentication to the download zip method which requires a method more complex than just Repl Auth. I can make a simple barebones website real quick that should help you if you'd like.

Profile icon
SidneyShapiro

@CoolCoderSJ That would be awesome, thank you

Profile icon
CoolCoderSJ

@SidneyShapiro https://download-repls.coolcodersj.repl.co/

On the login screen it asks for your sid.
To find your sid, go to https://replit.com/~
Click f12 (Mac - fn + f12)
Click the network tab
Reload
Filter for~
Click cookies
the sid is the value of the connect.sid cookie

Enjoy :)

Profile icon
SidneyShapiro

@CoolCoderSJ Thank you, I got it working and managed to download everything but they are all 70 bytes and are not able to be opened.
Screen Shot 2021-11-07 at 8.48.27 PM

Profile icon
CoolCoderSJ

@SidneyShapiro so I was literally trying to crate a fix for your previous comment (yes I saw it and it's happening to me too)

When you started the download, did it like say "authenticating as ...." And show you your sid or a blank?

Profile icon
SidneyShapiro

@CoolCoderSJ It showed the SID, not the username

Profile icon
CoolCoderSJ

@SidneyShapiro yep that's fine, it seems like an issue on replits end, because when I try to download a zip manually, it still says corrupted file. Lile always, there's a workaround, ill try to see if I can get it to work

Profile icon
SidneyShapiro

@CoolCoderSJ Does it work when you download one or a smaller batch?

Profile icon
CoolCoderSJ

@SidneyShapiro Nah, the batches don't matter

Actually, I've run into a new issue. The repls download properly (It's not corrupted) but I get "Disk Quota Exceeded" when trying to zip the batch and send it to the client.
I had hoped that breaking it up into batches and forcing users to download 100 repls at a time would fix it but apparently not. I'll look into other hosting sites since Replit's storage limit will interfere with this.

Profile icon
SLMJ

@SidneyShapiro open it in a text editor, to see what those 70 bytes are.

Profile icon
Coder100

hahah they are probably 401 unauthorized @SLMJ

Profile icon
SLMJ

yeah hehe @Coder100

Profile icon
SidneyShapiro

@SLMJ Im not sure. Ill have to run this again and see if I can get it working. It would be really nice if I could export the code in my account.

Profile icon
SLMJ

Actually, I think they're 404 not found @Coder100

Profile icon
Coder100

lol i think its 401 because the files are there, and as sj pointed out he was missing permissions @SLMJ

Profile icon
CosmicBear

I looked through some similar questions that people had and found that replit.com/@{username}/{repl_name}.zip downloads the repl as a zip file. IDK if it's possible, but maybe try creating an automated program that sends requests to the above url repeatedly.

Profile icon
Coder100

it wouldn't work with private repls and because of that I think you still need the connect.sid @CosmicBear

Profile icon
SidneyShapiro

@Coder100 I asked replit this week and they said its not possible. Its pretty annoying as I just want to save everything in my account (even the public ones which are 90% of them would be good)