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.
What it covers
- Setting your password from the admin's one-time link
- Installing the
weikioCLI with one line - Signing in with
weikio loginand 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 useto 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 logoutTranscript
- 0:01This video connects the weikio client, the command-line program, to a hub.
- 0:08Your machine talks to the hub, the server your integrations run on.
- 0:13An admin set up the hub and sent its address, your account and a one-time link.
- 0:23The one-time set-password link opens this page in your browser.
- 0:27A click on Set password signs the browser in.
- 0:30The hub's admin UI opens on its Home page.
- 0:37One line installs the client, weikio.
- 0:41The client is signed in to no hub yet.
- 0:49The client signs in through your browser.
- 0:51It opens the hub's approval page and waits there for your click.
- 0:57It shows the machine that asked, its key and its rights.
- 1:01Approve the login, and the hub hands the key to the client.
- 1:06The client saves a context for the hub.
- 1:13This line sets the project sandbox and the environment devtest.
- 1:17A context is what the client keeps for a hub: address and key,
- 1:22the project the commands work in, and the stage the integrations run in.
- 1:30whoami asks the hub who owns the key and what it allows.
- 1:34The grants row names the deployer role.
- 1:41You also have an account on the staging hub.
- 1:44This login carries the project and the environment with it.
- 1:50The staging hub asks you to approve again.
- 1:55The new context arrived with both set.
- 2:02Each hub gives the client its own context.
- 2:05The star marks the current context, where your commands go.
- 2:10Context use switches which hub the commands reach.
- 2:14Your commands talk to hub.example again.
- 2:22Logout takes the key off this machine and keeps the context.
- 2:25One more login signs you in again.
- 2:32Login gives the client its key.
- 2:34A context keeps the hub's address, project and environment.
- 2:39Context use switches which hub the commands reach.
- 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