Skip to content
Weik.ioUniversity
Try Weik.io

Connecting the Weik.io CLI

Getting started 3 · 2:54

The weikio CLI signs in to a hub through your browser and keeps a context for each hub. You start from the account and the one-time link that the hub's admin sends you.

Download the mp4Recorded on 2026.2

What it covers

  • Setting your password from the admin's one-time link
  • Installing the weikio CLI with one line
  • Signing in with weikio login and approving the sign-in on the hub's page
  • What a context keeps, checked with weikio whoami
  • A second context for a staging hub, and weikio context use to switch between them
  • Logging out with weikio logout, which removes the key from the machine and keeps the context

Commands in this video

Terminal
$ curl -fsSL https://weik.io/install.sh | sh
$ weikio login https://hub.example
$ weikio context set --project sandbox --env devtest
$ weikio whoami
$ weikio login https://staging.example --project sandbox --env devtest
$ weikio context list
$ weikio context use hub.example
$ weikio logout
Transcript
  1. 0:01This video connects the weikio client, the command-line program, to a hub.
  2. 0:08Your machine talks to the hub, the server your integrations run on.
  3. 0:13An admin set up the hub and sent its address, your account and a one-time link.
  4. 0:23The one-time set-password link opens this page in your browser.
  5. 0:27A click on Set password signs the browser in.
  6. 0:30The hub's admin UI opens on its Home page.
  7. 0:37One line installs the client, weikio.
  8. 0:41The client is signed in to no hub yet.
  9. 0:49The client signs in through your browser.
  10. 0:51It opens the hub's approval page and waits there for your click.
  11. 0:57It shows the machine that asked, its key and its rights.
  12. 1:01Approve the login, and the hub hands the key to the client.
  13. 1:06The client saves a context for the hub.
  14. 1:13This line sets the project sandbox and the environment devtest.
  15. 1:17A context is what the client keeps for a hub: address and key,
  16. 1:22the project the commands work in, and the stage the integrations run in.
  17. 1:30whoami asks the hub who owns the key and what it allows.
  18. 1:34The grants row names the deployer role.
  19. 1:41You also have an account on the staging hub.
  20. 1:44This login carries the project and the environment with it.
  21. 1:50The staging hub asks you to approve again.
  22. 1:55The new context arrived with both set.
  23. 2:02Each hub gives the client its own context.
  24. 2:05The star marks the current context, where your commands go.
  25. 2:10Context use switches which hub the commands reach.
  26. 2:14Your commands talk to hub.example again.
  27. 2:22Logout takes the key off this machine and keeps the context.
  28. 2:25One more login signs you in again.
  29. 2:32Login gives the client its key.
  30. 2:34A context keeps the hub's address, project and environment.
  31. 2:39Context use switches which hub the commands reach.
  32. 2:42Logout keeps the context and takes the key off the machine.

Next in this track

Getting started 4 · 3:08 How the YAML files look Watched