Everyone who works on a site has an account of their own, and is on the site in one of two roles. The common case is a developer who sets a site up, and an owner who keeps it up to date.
Owners and developers
Everyone on a site can do everything with it: see and edit its files, clone it and push to it, publish and roll back, read what’s sent with its forms, set its secrets and connect its domains. Anyone on the site can also invite people as owners or developers, and remove people. The code is never hidden from the people it belongs to.
A site always has someone on it: the last person who has signed in can’t be removed. Invitations that are still pending don’t count.
A role says what someone is there for, and decides where the dashboard opens. Owners start in Manage, for the business’s day-to-day: the preview, the Content tab and the Inbox. Developers start in Build, for Code, Checks and History. Anyone can switch between the two views.
Inviting someone
tekt invite owner@example.com --owner
tekt people
tekt remove owner@example.com
The same can be done in the dashboard, under the site’s Settings › People. A person who already has an account is on the site right away, and is emailed to say so. A person without an account is emailed an invitation. The link in the invitation signs the person in once, and works for 7 days. Until they’ve signed in, they’re listed as invited.
While Hypertekt is invite-only, only people we’ve invited can make new sites. Someone invited to a site can work on the sites they’re on, but can’t make new ones.
Signing in
People sign in with a link sent by email, and can add a passkey to sign in with from then on. The email link always works, so nobody is locked out by losing a passkey.
On the command line, tekt login signs in by approving the computer in the dashboard. The computer is given a
personal token of its own. Git uses the same token as its password for your sites, so you never type a password.
In CI
Make a personal token in your account’s Settings (not a site’s), for 30, 90 or 365 days. Give the token to CI as
HYPERTEKT_TOKEN. tekt uses that token in place of the one tekt login keeps, and tekt whoami says whose token it
is:
HYPERTEKT_TOKEN=ht_pat_… tekt publish --site your-site
When you use git without tekt, give the token as the password for the site’s repository. Any user name works. A token
can do anything you can, on every site you’re on. Keep the token in CI’s secrets, and delete it in Settings when it’s no
longer needed.