StackPanel

stackpanel agent test-token

Generate a deterministic test pairing token

stackpanel agent test-token

Generate a deterministic pairing token for testing and E2E automation.

This command requires STACKPANEL_TEST_PAIRING_TOKEN to be set. The generated token will be valid as long as the agent is started with the same secret.

The token is deterministic - running this command with the same secret and origin will always produce the same token, making it suitable for CI/CD pipelines.

Example: export STACKPANEL_TEST_PAIRING_TOKEN="my-e2e-test-secret" stackpanel agent test-token --origin "http://localhost:3000"

Then use the token in your tests: curl -H "X-Stackpanel-Token: <token>" http://localhost:9876/api/...

Usage

stackpanel agent test-token

Flags

FlagTypeDefaultDescription
--jsonboolfalseOutput in JSON format
--originstringnoneOrigin to bind the token to (e.g., http://localhost:3000)

Global Flags

These flags are inherited from parent commands.

FlagTypeDefaultDescription
--daemon, -dboolfalseRun in daemon mode (no TUI, for background processes)
--no-colorboolfalseDisable color output
--no-tuiboolfalseDisable interactive TUI mode
--verbose, -vboolfalseEnable verbose output

On this page