Description
Theinfisical bootstrap
command is used when deploying Infisical in automated environments where manual UI setup is not feasible. Itβs ideal for:
- Containerized deployments in Kubernetes or Docker environments
- Infrastructure-as-code pipelines with Terraform or similar tools
- Continuous deployment workflows
- DevOps automation scenarios
This command creates an instance admin machine identity with the highest level
of privileges. The returned token should be treated with the utmost security,
similar to a root credential. Unauthorized access to this token could
compromise your entire Infisical instance.
Flags
--domain
--domain
The URL of your Infisical instance. This can be set using the This flag is required.
INFISICAL_API_URL
environment variable.--email
Email address for the admin user account that will be created. This can be set using the This flag is required.
INFISICAL_ADMIN_EMAIL
environment variable.--password
--password
Password for the admin user account. This can be set using the This flag is required.
INFISICAL_ADMIN_PASSWORD
environment variable.--organization
--organization
Name of the organization that will be created within the instance. This can be set using the This flag is required.
INFISICAL_ADMIN_ORGANIZATION
environment variable.Response
The command returns a JSON response with details about the created user, organization, and machine identity:Usage with Automation
For automation purposes, you can extract just the machine identity token from the response:Example: Capture Token in a Variable
Notes
- The bootstrap process can only be performed once on a fresh Infisical instance
- All flags are required for the bootstrap process to complete successfully
- Security controls prevent privilege escalation: instance admin identities cannot be managed by non-instance admin users and identities
- The generated admin user account can be used to log in via the UI if needed