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