-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ui plugin management #354
Conversation
df02889
to
7572c6b
Compare
…a file in multiform/data uploads
c02beeb
to
d9aefe4
Compare
Update All of the points below have been fixed/addressed. After writing some more tests, I've come across the following potential problems which I'll need to work out if the behaviour is correct, and if not adjust it...feel free to provide feedback on what handling should be done.
|
…ing the reference and the plugin data models
…g or removing a plugin
bfad5cc
to
9bbc856
Compare
Introducing support for management of Cumulocity IoT Plugins. Management of UI plugins is much easier now and can be easily integrated into CI/CD pipelines.
The introduction of a new group command called
ui
, which will be the future grouping of all UI related tasks, though currently only the UI plugin related functionality has been added, however in the future some of the other command likecreateHostedApplication
will be moved to theui
group as well.The following command groups have been added:
c8y ui plugins
- Commands to manage UI plugins (upload new plugin version, delete version etc.)c8y ui applications plugins
- Commands to manage the UI plugins used by a UI application (e.g. install a plugin to an application)c8y application versions
- Commands to interact with the Application Versions api. (e.g. the raw API calls for power users who don't want any cli abstractions)Examples
Checkout the new doc page which goes through the examples in more detail, but the following are some examples of some of the new commands.
c8y ui plugins
Installing a new version of a plugin
List plugins
Update/Replace tags
c8y ui plugins versions update --plugin myplugin --version "1.0.0" --tags latest,other
Delete a version
c8y ui applications plugins
Install latest version of a plugin
Install specific version of a plugin
Update all plugins to latest versions
Or update plugins for all applications
c8y applications list --type HOSTED --pageSize 10 \ | c8y ui applications plugins update --all
Replace all existing plugins with a new set
Remove orphaned or revoked plugins from an application
Or run the same as above but for all applications matching some criteria:
Remove all plugins