Documentation Index
Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Description
Relay-related commands for Infisical. Relays are organization-deployed servers that route encrypted traffic between Infisical and your gateways. Relays are created via the Infisical dashboard (Networking → Relays → Create Relay) and then deployed using the CLI commands below.Subcommands & flags
infisical relay start
infisical relay start
Run the Infisical relay component. The relay handles network traffic routing between Infisical and your gateways.
Authentication
Relays support two enrollment methods. The enrollment method is set when creating the relay in the dashboard.Token Auth
Token Auth
Token auth uses a one-time enrollment token (1 hour expiry) generated from the relay detail page. The token is exchanged for a long-lived access token on first start and stored on disk for subsequent restarts.The On subsequent starts with the same enrollment token, the relay skips enrollment and uses the stored access token.Token-method enrollment tokens are single-use and expire after 1 hour. If the token expires before deployment, click Show deploy command on the relay detail page to generate a new one.
--host flag is not required — the host is stored server-side when the relay is created.- Foreground
- Linux (systemd)
AWS Auth
AWS Auth
AWS auth uses the host’s AWS credentials (instance role, env vars, or shared profile) to authenticate via STS GetCallerIdentity. A fresh token is minted on every start — no on-disk persistence needed.The
- Foreground
- Linux (systemd)
--relay-id is the relay’s UUID, visible on the relay detail page. The relay ID is persisted after first use so subsequent starts don’t need --relay-id again.Flags
--name
--name
The name of the relay. Must match the name used when creating the relay in the dashboard.
--enroll-method
--enroll-method
The enrollment method to use. Supported values:
token, aws.--token
--token
The one-time enrollment token (required when
--enroll-method=token). Generated from the relay detail page via Show deploy command.--relay-id
--relay-id
The relay UUID (required when
--enroll-method=aws). Visible on the relay detail page.--domain
--domain
Domain of your Infisical instance. Required for self-hosted deployments.
infisical relay systemd
infisical relay systemd
Manage systemd service for the Infisical relay on Linux systems.
Requirements
- Operating System: Linux only
- Privileges: Root/sudo privileges required
- Systemd: The system must be running systemd
Subcommands
install
install
Install and enable systemd service for the relay. See the authentication section above for install commands.After installation, start the service:To check status and logs:
uninstall
uninstall
Uninstall and remove systemd service for the relay.