Skip to content
Can I recover the original software package for an active CLI deployment?
Anonymous
OP

4 hours ago

For a deployment uploaded with the Railway CLI, is there a supported way for the owner to retrieve the original uploaded source archive or the application build artifact? The goal is to recover only the deployed software and verify that it matches the active release before making a small change. The running service should stay online, and the recovery should exclude databases, mounted volumes, logs and environment variables. Does Railway expose a download or checksum for this purpose, or document another supported approach?

Awaiting User Response

1 Reply

Railway
BOT

4 hours ago

We don't provide a download, checksum, or export of the original CLI-uploaded source archive or the Railway-built image for a deployment, through the dashboard, API, CLI, or support.

What you can do yourself is copy files out of the running container without touching the service. The service's Console tab has a Files panel for browsing and downloading files, railway ssh opens a shell (or runs a single command with railway ssh -- <command>), and scp/sftp work against ssh.railway.com once an SSH key is registered on your account, for example scp -r [email protected]:/app ./app. You choose which paths to copy, so volumes, logs and variables stay out unless you pull them.

Keep in mind that this is the container's current filesystem, not the original archive. A multi-stage build keeps only the final stage, and compiled or bundled output is not the original source. That means it can't serve as cryptographic proof that a file set matches the uploaded release.

For future releases, building and keeping your own archive or image (with its digest) before you deploy gives you a verifiable copy of what you shipped.


Status changed to Awaiting User Response Railway • about 4 hours ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...