Skip to content

Add support for stopping, pausing, and resuming services directly from the CLI #683

Description

@alanrezendeee

💡 Description

Currently, the Railway CLI allows developers to deploy and manage services, but it lacks a simple way to stop, pause, or resume a running service directly from the command line.
This feature would be extremely helpful for developers who want more control over their environments, especially in situations like:

Temporarily disabling a service to save resources or costs.

Stopping services before performing updates or maintenance.

Quickly pausing development environments during inactive periods.

🧩 Proposed Solution

Introduce new CLI commands:

railway service stop — gracefully stops the selected service.

railway service pause — pauses the service without removing resources.

railway service resume or railway service start — brings the service back online.

🚀 Expected Benefits

Improve developer experience by adding full lifecycle control to the CLI.

Reduce unnecessary usage costs for idle environments.

Enable faster environment management for development and staging setups.

🧠 Additional Thoughts

Other platforms like Docker, Railway competitors, and even Railway’s own dashboard UI already support similar actions.
Exposing this through the CLI would bring parity with the dashboard and make automation or CI/CD scripting more powerful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions