adobe / adobe/aio-cli-plugin-app

Simplified deployment workflow for switching between workspaces

Open
#382 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
28
Forks
41
Avg merge
1d 2h
Merged PRs (30d)
3

Description

**Is your feature request related to a problem? Please describe.**

I deploy app in multiple workspaces, so I switch between 3 of them right now. It would be nice if I could use some kind of flag for `aio app deploy` and `aio app undeploy` (especially last one) to use specific context, instead of going through `aio console workspace list > aio workspace select > aio app use > aio app deploy/undeploy` every time.

Also, it would be nice to be able to switch context via `aio console workspace select` by workspace name - created https://github.com/adobe/aio-cli-plugin-console/issues/158 for this.

**Describe the solution you'd like**

Single-command for `aio app deploy/undeploy` (potentially also `run` and some other commands, I didn't use them as they don't fit my scenario).

Ideally, have a flag applicable to all relevant commands for execution in the specified workspace:

1. `aio app deploy --workspace-name=develop`
2. `aio app deploy --workspace-name="Olga Workspace"` (if spaces are allowed)
3. `aio app deploy --workspace=1243435` (by id)

After the command is executed, the current workspace should stay the same as before.

Les ideal, but also acceptable solution would be to have the same as above, but switch workspace. But this may be really unexpected, so at least the flag should reflect this, maybe to be named something like `--change-workspace`.

**Describe alternatives you've considered**

Local automation script.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.