The osgi shell provides commands for managing the OSGi runtime, and includes commands for listing OSGi bundles and services, and managing bundle lifecycles.
Next are listed the ones considered as most useful to know when working when BTTBuildTask. Refer to the OSGI documentation for more details.
osgi:install
Installs one or more bundles.
osgi:install[-s][--start]urls
osgi:install file:bundle_<version>.jar
-s, --start
Starts the bundles after installation
urls
The bundle URLs, separated by whitespaces
osgi:start
Starts the bundle.
osgi:startids
ids
The list of bundle IDs to start, separated by whitespaces
osgi:stop
Stops one or more bundles.
osgi:stopid
id
The bundle ID
osgi:uninstall
Uninstalls the specified bundle.
osgi:uninstallid
id
The bundle ID
osgi:update
Updates the bundle.
osgi:updateid
id
The bundle ID
osgi:headers
Displays OSGi headers of a specified bundle (Manifest file).