Dive

dive serve

dive serve token

Print a run token signed with the local development key

Prints a token with a fresh jti that expires in an hour, for dive serve --dev-key. Pass --plan for a token that starts a run of that plan, or --scope for one that reads and cancels runs.

Options

--planstring

The plan the token may start

Format: PLAN.

--tenantstringrequired

The tenant the run belongs to

Format: TENANT.

--substringrequired

The user the run belongs to

Format: SUB.

--scopestringdefault: plans:read runs:read runs:cancel

Space-separated scopes

Format: SCOPE.

--dirstring

Project directory, the one holding .dive/; defaults to the current directory

Format: PATH.

Global options

Increase log verbosity (-v info, -vv debug, -vvv trace)

Act as this [identities] entry: runs get a run token minted for its tenant and user, which http tools send to the app

Format: IDENTITY.

dive serve token [OPTIONS] --tenant <TENANT> --sub <SUB>