Skip to content

Create an API key

Create a named local API key before following the Beacon API rotation procedure. Run the commands from the root of the fixture repository with Node 24. The fixture stores its state in .beacon-fixture/state.json and does not contact a remote service.

Before changing an API key, keep a recovery credential in a secure location. Confirm the key name and project before continuing. Use a disposable fixture key for these exercises; never paste a live secret into a terminal transcript or documentation example.

Create the key #

Run node src/beacon.mjs key create --name demo.

The result is created API key key-demo (generation 1). Save the identifier key-demo; subsequent commands use that identifier. Repeating the create command with the same name reports that the key already exists.

For developers, choose a different short lowercase name when another fixture key is needed. Read API key limits before using the key in an example that discusses request allowances.

Was this page helpful?