Getting started
Authentication
Tokens
stubs, package managers and CI sign in with a token. Create one in Settings → API tokens, choose what it can do,
and how long it lasts. Stubs shows it once: keep it somewhere safe.
| Scope | Lets the token |
|---|---|
registry:read | read private modules (stubs build, stubs export, stubs dep update) |
registry:write | push, and create modules |
sdk:read | install private generated SDKs with a package manager |
admin | change settings, as you can in the app |
Public modules and their SDKs need no token. Revoke a token in the same place; it stops working at once.
Signing in
stubs login stubs.dev --token-stdinstubs keeps the token in your .netrc and sends it to stubs.dev from then on. To check:
stubs whoami stubs.devIn CI, pipe the token in from a secret (see CI with GitHub Actions).