Cheatography
https://cheatography.com
common ServiceMix commands
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Development
Restart Karaf |
dev:restart [-c] |
OSGi Framework |
dev:framework [-debug] [-nodebug] |
Print the full trace |
dev:print-stack-traces |
Enable/Disable dynamic Import for a bundle |
dev:dynamic-import id |
Show the tree of bundles |
dev:show-tree id |
Logging
Display log |
log:display [--no-color] [-p] [-n] |
Display last exception |
log:display-exception |
Show log level |
log:get [loggerName] |
Set log level |
log:set level [loggerName] |
Clear log |
log:clear |
Continually display log entries |
log:tail |
Features
Info about feature |
features:info [-t] [-b] [-c] [-d] |
List all features |
features:list [-o] [i] |
Install a feature |
features:install [-r] [-c] [-v] |
Uninstall a feature |
features:uninstall features |
List features repository URLs |
features:listurl [-v] [-vo] |
Register one or more urls |
features:addurl [i] urls |
Remove list of repository url |
features:removeurl [-n] urls |
Realod list of available features |
features:refreshurl urls |
Remove repository |
features:removerepository repo |
List all versions of a feature |
features:listversions feature |
|
|
Bundles
list the installed bundles |
osgi:list [-u] [-t] [-l] [-s] |
Display details about bundles |
osgi:info id |
Get or set the start level |
osgi:bundle-level [--force] id [level] |
|
osgi:bundle-services |
List all of the classes |
osgi:classes [--force] [[-a] | [--display-all-files]] {ids} |
Display headers of a bundle |
osgi:headers id |
locate a specified class in any deployed bundle |
osgi:find-classes className |
installs one or more bundles |
osgi:install [-s] url |
Resolve bundle dependencies |
osgi:resolve [--force] id |
Refresh bundle |
osgi:refresh [--force] id |
Start bundle |
osgi:start [--force] id |
Get or set OSGi framework's active start level |
osgi:start-level level |
Update bundle |
osgi:update [--force] id |
Stop |
osgi:shutdown [-f] [hh:mm] [+m] |
Restart bundle |
osgi:restart [--force] id |
Stop bundle |
osgi:stop [--force] id |
Uninstall bundle |
osgi:uninstall [--force] id |
List services |
osgi:ls [-u] [-p] [-a] [--force] id |
|
|
|