Skip to content

Add support for passing --project <PROJECT> to deployment list#970

Open
m-abdelwahab wants to merge 1 commit into
railwayapp:masterfrom
m-abdelwahab:mahmoud/deployment-list-project
Open

Add support for passing --project <PROJECT> to deployment list#970
m-abdelwahab wants to merge 1 commit into
railwayapp:masterfrom
m-abdelwahab:mahmoud/deployment-list-project

Conversation

@m-abdelwahab

Copy link
Copy Markdown
Collaborator

Summary

Adds project selection support to railway deployment list via --project <PROJECT>, matching the service-scoped command pattern used elsewhere in the CLI.

Why

deployment list previously only worked from the linked project, even though related commands such as logs/restart/redeploy can target another project through --project plus --environment.

Changes

  • Adds -p, --project <PROJECT> to railway deployment list.
  • Routes deployment listing through resolve_service_context so project, environment, and service resolution stay consistent.
  • Adds exact project ID/name resolution for shared service context commands, with ambiguity errors for duplicate project names.
  • Preserves the previous case-insensitive service-name behavior when resolving explicit services.
  • Adds a CLI parser regression test for deployment list --project ... --environment ... --service ....

Validation

  • cargo test cli_tests
  • cargo test --no-run
  • cargo run -- deployment list --help

Release

Minor: exposes a new CLI flag for an existing command.

@m-abdelwahab m-abdelwahab added the release/minor Author minor release label Jun 14, 2026
@m-abdelwahab m-abdelwahab changed the title [codex] Add project selection to deployment list Add support for passing --project <PROJECT> to deployment list Jun 14, 2026
@m-abdelwahab m-abdelwahab marked this pull request as ready for review June 14, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/minor Author minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant