mktoken

command
v0.178.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command mktoken mints a personal API token of scope agent-create for one muster user and prints it: the credential e2e/lib/seed.ts presents to POST /api/agents, the machine route that replaced the web UI's dispatch form (docs/design/chief-dispatch.md, phase 2).

DATABASE_URL=…_e2e MUSTER_E2E_USER=<id, default 1> go run ./e2e/mktoken

It mints through the real token store, as that user, so row-level security files the token under its owner exactly as /account/tokens would.

🔴 IT REFUSES ANY DATABASE WHOSE NAME DOES NOT END IN "_e2e" (e2edb.Check).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL