RailwayDocs

railway volume

Manage persistent storage volumes for your services.

Usage

Subcommands

SubcommandAliasesDescription
listlsList volumes
addcreateAdd a new volume
deleteremove, rmDelete a volume
updateeditUpdate a volume
detachDetach a volume from a service
attachAttach a volume to a service

Examples

List volumes

Add a volume

Delete a volume

Update volume mount path

Rename a volume

Detach volume from service

Attach volume to service

Common options

FlagDescription
-s, --service <SERVICE>Service ID
-e, --environment <ENV>Environment ID
--jsonOutput in JSON format

Options for

FlagDescription
-m, --mount-path <PATH>Mount path for the volume (must start with /)

Options for

FlagDescription
-v, --volume <VOLUME>Volume ID or name
-y, --yesSkip confirmation
--2fa-code <CODE>2FA code for verification

Options for

FlagDescription
-v, --volume <VOLUME>Volume ID or name
-m, --mount-path <PATH>New mount path
-n, --name <NAME>New name for the volume

Options for

FlagDescription
-v, --volume <VOLUME>Volume ID or name to detach
-y, --yesSkip confirmation
--jsonOutput in JSON format

Options for

FlagDescription
-v, --volume <VOLUME>Volume ID or name to attach
-y, --yesSkip confirmation
--jsonOutput in JSON format