Moves all cloud commands to the top-level root, resulting in:
up login
up logout
up controlplane ...
This is a fairly large breaking change, but should be straightforward for users to adapt to. The most noticeable change is that the on-disk config file structure is slightly modified. But a user running up login will automatically have their config file restructured in the new format. They will be required to login each profile they previously had.
Expand for prior command structure
```
🤖 (up) up -h
Usage: up
The Upbound CLI
Flags:
-h, --help Show context-sensitive help.
-v, --version Print version and exit.
Commands:
license
Print Up license information.
cloud
cloud login
Login to Upbound Cloud.
cloud logout
Logout from Upbound Cloud.
cloud controlplane attach
Attach a self-hosted control plane.
cloud controlplane create
Create a hosted control plane.
cloud controlplane delete
Delete a control plane.
cloud controlplane list
List control planes for the account.
cloud controlplane kubeconfig get --token=STRING
Get a kubeconfig for a control plane.
cloud controlplane token create
Create a control plane token.
cloud controlplane token delete
Delete a control plane token.
cloud controlplane token list
List tokens for the control plane.
enterprise
enterprise install
Install enterprise.
enterprise uninstall
Uninstall enterprise.
enterprise upgrade
Upgrade enterprise.
uxp
uxp install []
Install UXP.
uxp uninstall
Uninstall UXP.
uxp upgrade []
Upgrade UXP.
uxp connect
Connect UXP to Upbound Cloud.
xpkg
xpkg build
Build a package.
xpkg push
Push a package.
Run "up --help" for more information on a command.
```
Expand for new command structure
```
🤖 (up) up -h
Usage: up
The Upbound CLI
Flags:
-h, --help Show context-sensitive help.
-v, --version Print version and exit.
Commands:
license
Print Up license information.
login
Login to Upbound.
logout
Logout of Upbound.
controlplane
controlplane attach
Attach a self-hosted control plane.
controlplane create
Create a hosted control plane.
controlplane delete
Delete a control plane.
controlplane list
List control planes for the account.
controlplane kubeconfig get --token=STRING
Get a kubeconfig for a control plane.
controlplane token create
Create a control plane token.
controlplane token delete
Delete a control plane token.
controlplane token list
List tokens for the control plane.
enterprise
enterprise install
Install enterprise.
enterprise uninstall
Uninstall enterprise.
enterprise upgrade
Upgrade enterprise.
uxp
uxp install []
Install UXP.
uxp uninstall
Uninstall UXP.
uxp upgrade []
Upgrade UXP.
uxp connect
Connect UXP to Upbound Cloud.
xpkg
xpkg build
Build a package.
xpkg push
Push a package.
Run "up --help" for more information on a command.
```
Description of your changes
Moves all
cloud
commands to the top-level root, resulting in:up login
up logout
up controlplane ...
This is a fairly large breaking change, but should be straightforward for users to adapt to. The most noticeable change is that the on-disk config file structure is slightly modified. But a user running
up login
will automatically have their config file restructured in the new format. They will be required to login each profile they previously had.Expand for prior command structure
``` 🤖 (up) up -h Usage: upExpand for new command structure
``` 🤖 (up) up -h Usage: upFixes #114
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR, as appropriate.How has this code been tested
I have tested each set of the commands that have been moved, including:
up login
up login -a dan
up logout
up ctp create test -a dan
up ctp kubeconfig get --token=<token> <cp-id> -a dan
k get pods -A
up ctp token list <cp-id> -a dan
up ctp delete <cp-id>