Skip to content
Weik.ioUniversity
Try Weik.io

Connecting the Weik.io CLI

Getting started 3 · 2:59

The weikio CLI signs in to your Weik.io installation through your browser and keeps a context for each installation. You start from the account and the one-time link that the installation'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 its install script
  • Signing in with weikio login and approving the sign-in in your browser
  • The user, the key and the access, checked with weikio whoami
  • A second context for a staging installation, 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 Weik.io CLI to your Weik.io installation,
  2. 0:06with login and context.
  3. 0:11Your machine runs the CLI, which talks to the installation.
  4. 0:15An admin sent the installation's address,
  5. 0:17your account and a one-time link to set your password.
  6. 0:25The link opens the Set new password page in your browser.
  7. 0:29The Set password button signs the browser in.
  8. 0:32The admin UI opens on Home, signed in to the installation.
  9. 0:41curl installs the CLI on your machine.
  10. 0:45The CLI isn't signed in to an installation yet.
  11. 0:52Run weikio login with the installation's address to sign in through your browser.
  12. 0:59Check the machine that asked,
  13. 1:00the key the login creates and the access the key gives.
  14. 1:04Approving this login creates the key for this machine.
  15. 1:10The CLI saves a context named after the installation's address,
  16. 1:14then makes it current.
  17. 1:20weikio context set puts project sandbox and environment devtest in the current context.
  18. 1:27The login gave no project.
  19. 1:31weikio whoami prints the user, the key and the access.
  20. 1:36The grant is deployer on project sandbox in devtest.
  21. 1:44The same account exists on the staging installation.
  22. 1:47This login carries the project and environment with it.
  23. 1:52Approving there gives the CLI a second key.
  24. 1:57The login saves a second context, then makes it current.
  25. 2:05weikio context list prints a row for each context.
  26. 2:09The star marks the current context, where commands go.
  27. 2:16weikio context use with the first installation's address makes that context current again.
  28. 2:27weikio logout takes the key off your machine but keeps the context.
  29. 2:32The next login signs you back in.
  30. 2:38A browser sign-in gives the CLI a key and a context.
  31. 2:42Each installation keeps a context.
  32. 2:45A logout drops the key, and the context stays for the next login.

Next in this track

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

Sign in to the live demo

Sign in with the shared viewer account, which can open every screen of the example projects and can't change anything.

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