This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new b7c9f06879b CAMEL-18497: camel-jbang - Run command now supports specifying a different Camel version. b7c9f06879b is described below commit b7c9f06879b57cba600bf0bd132744819555ffc7 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sun Jan 8 20:13:53 2023 +0100 CAMEL-18497: camel-jbang - Run command now supports specifying a different Camel version. --- docs/user-manual/modules/ROOT/pages/camel-jbang.adoc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc index 9c067d28f50..67d4d3d462e 100644 --- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc +++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc @@ -539,19 +539,29 @@ You can specify which Camel version to run as shown: [source,bash] ---- -jbang run -Dcamel.jbang.version=3.17.0 camel@apache/camel [command] +jbang run -Dcamel.jbang.version=3.18.4 camel@apache/camel [command] ---- NOTE: Older versions of Camel may not work as well with Camel JBang as the newest versions. Starting from Camel 3.18 onwards is the versions that are recommended to be used onwards. -And you can also try bleeding edge development by using SNAPSHOT such as: +In *Camel 3.21* onwards the `run` command has built-in support, using `--camel-version`, +for specifying Camel version to use for the running Camel integration. [source,bash] ---- -jbang run --fresh -Dcamel.jbang.version=3.21.0-SNAPSHOT camel@apache/camel [command] +camel run * --camel-version=3.18.4 ---- +TIP: This makes it easy to try different Camel versions, for example when you need to reproduce an issue, +and find out how it works in different Camel version. + +You can also try bleeding edge development by using SNAPSHOT such as: + +[source,bash] +---- +jbang run --fresh -Dcamel.jbang.version=3.21.0-SNAPSHOT camel@apache/camel [command] +---- === Running Camel K integrations or bindings