To see a list of the available commands in the console press the Tab
key at the karaf>
prompt.
Figure 3.1. Available Console Commands
activemq:browse activemq:bstat activemq:create-broker
activemq:destroy-broker activemq:list activemq:purge
activemq:query admin:change-port admin:connect
admin:create admin:destroy admin:list
admin:start admin:stop config:cancel
config:edit config:list config:propappend
config:propdel config:proplist config:propset
config:update dev:dynamic-import dev:framework
dev:show-tree features:addUrl features:install
features:list features:listUrl features:refreshUrl
features:removeUrl features:uninstall jbi:list
jbi:shutdown jbi:start jbi:stop
log:display log:display-exception log:get
log:set nmr:list osgi:bundle-level
osgi:headers osgi:install osgi:list
osgi:ls osgi:refresh osgi:resolve
osgi:restart osgi:shutdown osgi:start
osgi:start-level osgi:stop osgi:uninstall
osgi:update packages:exports packages:imports
shell:cat shell:clear shell:each
shell:echo shell:exec shell:grep
shell:if shell:info shell:java
shell:printf shell:sleep shell:sort
shell:tac ssh:ssh ssh:sshd
To see a list of commands in a particular command grouping, type the command prefix, for
example shell
or osgi
and then press
Tab.
Figure 3.2. Available shell Commands
shell:cat shell:clear shell:each shell:echo shell:exec
shell:grep shell:if shell:info shell:java shell:printf
shell:sleep shell:sort shell:tac
To view help on a particulare command, type the command followed by --help. For example,
Figure 3.3. Help for the features:list Command
karaf@root> features:list --help
DESCRIPTION
features:list
Lists all existing features available from the defined repositories.
SYNTAX
features:list [options]
OPTIONS
--help
Display this help message
-i, --installed
Display a list of all installed features only