cloudfoundry / cli

The official command line client for Cloud Foundry
https://docs.cloudfoundry.org/cf-cli
Apache License 2.0
1.75k stars 927 forks source link

Feature Request: Allow app devs to pass a -s and -o flag to `cf push` #1413

Open abbyachau opened 6 years ago

abbyachau commented 6 years ago

Command

What

Allow for cf push my-app -s my-space -o my-org so that I am always sure that I am targeting the correct environment when I push

Why

Note: From a slack conversation: https://cloudfoundry.slack.com/archives/C032824SM/p1523331763000112

cf-gitbot commented 6 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/158780175

The labels on this github issue will be updated when the story is started.

CAFxX commented 6 years ago

Another reason: for symmetry and to avoid confusion with other commands: e.g. cf org-users/space-users requires to specify the org/org+space name (these commands do not consider the currently-targeted org/space at all, they return an error if run without specifying the org/org+space)

Ideally, all commands should work in both ways: 1) if no org/space is specified they use the current target 2) if an org/space is explicitly specified as an argument they use the explicit one

github-actions[bot] commented 2 days ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed.