provideplatform/provide-cli

Update `prvd accounts` on CLI

Opened this issue · 1 comments

Update `prvd accounts` on CLI

As a user, when I type prvd accounts init I should be prompted to select appropriate / relevant choices from a menu, e.g.:

  • What type of account is this? (U)ser (O)rganization or (A)pplication
  • On which network should the account be created? (display currently available networks)
  • Based on the user's selection, they should then be presented with a contextualized menu:
    -- If user chooses U, no further action is required and the account is created for the currently authenticated user on the specified network
    -- If user chooses O, they should see an organization selection with results narrowed by organizations on the selected network for the authenticated user
    -- If user chooses A, they should see an application selection with results narrowed by applications on the selected network for the authenticated user

For the moment, we will assume all accounts are custodial accounts, and that if a user requires the use of a non-custodial account, or wishes to add other flags (i.e. config and verbose), they will do so with long form command entry

prvd accounts list should display organization name with listed accounts