Skip to content
Weik.ioDocs
2026.2
Try Weik.io

Your first integration

Weik.io 2026.2

Create an integration in an empty folder and run it on devtest with the weikio CLI. Product page · Video

Watch: Your first integration, 3:15

The video creates sandbox/hello with weikio init and publishes it with weikio apply. Then it deploys the integration to devtest and follows its log lines.

On this page

To follow this page, you need a Weik.io installation you can reach and an API key with a grant on a project. Install the CLI if you haven’t yet. In the dev container the CLI is already signed in, so start from step 2.

1. Sign in#

On a machine with a browser, weikio login opens the approval page of your Weik.io installation, where you approve the login. On a machine without a browser, type an API key at the hidden prompt, as below. Either way, the CLI keeps the key in your system’s keyring.

Terminal
$ weikio login https://hub.example --project sandbox --env devtest
You see
API key: ********
Context 'hub.example' saved and made current (server https://hub.example, project sandbox, environment devtest).

The CLI saves these values in a context, so the commands below don’t repeat them.

2. Create the integration#

Terminal
$ weikio init hello
You see
Created hello/
  hello.camel.yaml        timer -> log, runs every 5 s
  application.properties  message=hello from weikio
  integration.yaml        name hello, other fields as commented examples

Next, to run it in project sandbox and environment devtest:
  weikio run ./hello

The commented examples in integration.yaml are fields you add later, such as a Camel version or dependencies.

A name can use only lower-case alphanumeric characters and hyphens, so weikio init HelloWorld stops with an error that shows hello-world as the name to use.

3. Run it on devtest#

weikio run publishes the folder as a version and deploys it to the environment, then follows its log lines:

Terminal
$ weikio run ./hello
You see
Target: https://hub.example, project sandbox (context), environment devtest (context)
integration sandbox/hello created (version 0.1.0, built in 16.2 s)
deployment devtest/sandbox/hello created (follows latest)
Following the log lines of sandbox/hello. Ctrl-C stops following, and the integration keeps running.
09:14:07.113 UTC INFO  hello  dev  Exchange[ExchangePattern: InOnly, BodyType: String, Body: hello from weikio]
09:14:12.114 UTC INFO  hello  dev  Exchange[ExchangePattern: InOnly, BodyType: String, Body: hello from weikio]
^C

Most of the first build’s 16 seconds go to Weik.io resolving Camel’s libraries.

A command that changes something first prints which installation, project and environment it used, and where each came from.

4. See where it runs#

Run weikio status to see where the integration runs in each environment and weikio logs to see the log lines it wrote:

Terminal
$ weikio status sandbox/hello
$ weikio logs sandbox/hello --since 10m

5. Change it#

Edit a file, for example the message in application.properties, and run the same command again. The CLI publishes the change as the next patch version, which the deployment then runs:

Terminal
$ weikio run ./hello
You see
Target: https://hub.example, project sandbox (context), environment devtest (context)
integration sandbox/hello updated (version 0.1.1, built in 15.9 s)
deployment devtest/sandbox/hello updated (follows latest)

See it in the admin UI#

To see hello in the admin UI, sign in at the installation’s address in your browser and pick hello on the Integrations page. To create the next integration there, see The admin UI.

/integrations/sandbox/hello
The page of sandbox/hello with version 0.1.1 running in devtest on the agent dev and its messages of the last hour. Its log lines have the message hello again from weikio.The page of sandbox/hello with version 0.1.1 running in devtest on the agent dev and its messages of the last hour. Its log lines have the message hello again from weikio.The page of sandbox/hello with version 0.1.1 running in devtest on the agent dev and its messages of the last hour. Its log lines have the message hello again from weikio.The page of sandbox/hello with version 0.1.1 running in devtest on the agent dev and its messages of the last hour. Its log lines have the message hello again from weikio.
The sandbox/hello page: the version devtest runs and who deployed it, and the last hour's messages and newest log lines.

weikio run is apply and deploy in one, as Versions and the developer loop describes. Environments and promotion shows how a version gets to production.

Sign in to the live demo

Sign in with the shared viewer account. It can open every screen of the example projects but can't change anything.

E-mail
viewer@demo.weik.io
Password
try-weikio-live-demo
Open the live demo