railway volume
Manage persistent storage volumes for your services.
| Subcommand | Aliases | Description |
|---|
list | ls | List volumes |
add | create | Add a new volume |
delete | remove, rm | Delete a volume |
update | edit | Update a volume |
detach | | Detach a volume from a service |
attach | | Attach a volume to a service |
| Flag | Description |
|---|
-s, --service <SERVICE> | Service ID |
-e, --environment <ENV> | Environment ID |
--json | Output in JSON format |
| Flag | Description |
|---|
-m, --mount-path <PATH> | Mount path for the volume (must start with /) |
| Flag | Description |
|---|
-v, --volume <VOLUME> | Volume ID or name |
-y, --yes | Skip confirmation |
--2fa-code <CODE> | 2FA code for verification |
| Flag | Description |
|---|
-v, --volume <VOLUME> | Volume ID or name |
-m, --mount-path <PATH> | New mount path |
-n, --name <NAME> | New name for the volume |
| Flag | Description |
|---|
-v, --volume <VOLUME> | Volume ID or name to detach |
-y, --yes | Skip confirmation |
--json | Output in JSON format |
| Flag | Description |
|---|
-v, --volume <VOLUME> | Volume ID or name to attach |
-y, --yes | Skip confirmation |
--json | Output in JSON format |