Create organizations CLI
See original GitHub issueWe need a CLI that will mirror the API and allow users to use CLI syntax to make changes to the organization.
The CLI commands should be simple, clear and human readable. Feel free to outline commands here for us to discuss.
Update:
List of Organization CLI commands:
-
Create organization POST
codenvy organization create --name={name} --parent={parent-id}
-
Update organization POST /{id}
codenvy organization update --id={id} --name={name} --new-name={new-name}
-
Delete organization DELETE /{id}
codenvy organization delete --id={id} --name={name}
-
Review organization GET /{organizationId}, GET /find?name={name}
codenvy organization --id={id} --name={name}
{ “id”: “{id}” “name”: “{name}” “parent”: “{parent-id}” }
-
Get list of children: GET /{parent}/organizations
codenvy organization children --id={id} --name={name}
[{ “id”: “{id1}” “name”: “{name1}” “parent”: “{parent-id1}” }, { “id”: “{id2}” “name”: “{name2}” “parent”: “{parent-id2}” }, …]
-
Get list of organizations where user is member (#669) GET ?user={user}
codenvy organization list --user={user}
[{ “id”: “{id1}” “name”: “{name1}” “parent”: “{parent-id1}” }, { “id”: “{id2}” “name”: “{name2}” “parent”: “{parent-id2}” }, …]
-
User should login using “codenvy login” command before executing organization command. it is needed to get access to Organization API. To do this, next issue should be resolved (#667).
This issue is blocked by the next Issues which should be fixed before:
- https://github.com/codenvy/codenvy/issues/410
- https://github.com/codenvy/codenvy/issues/419
- https://github.com/codenvy/codenvy/issues/669
Resources
Issue Analytics
- State:
- Created 7 years ago
- Comments:26 (25 by maintainers)
Top GitHub Comments
@TylerJewell: that is the issue to fix IM CLI login command: https://github.com/codenvy/codenvy/issues/667
This fix could be helpful for “codenvy audit” command as well.
@benoitf, @TylerJewell: I have updated description of issue to reflect results of discussion.
@tolusha is there an issue to describe the dashboard work?