Stubs

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.

ScopeLets the token
registry:readread private modules (stubs build, stubs export, stubs dep update)
registry:writepush, and create modules
sdk:readinstall private generated SDKs with a package manager
adminchange 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-stdin

stubs keeps the token in your .netrc and sends it to stubs.dev from then on. To check:

stubs whoami stubs.dev

In CI, pipe the token in from a secret (see CI with GitHub Actions).