2018-10-24 10:24:29 -04:00
---
2020-09-01 10:14:13 -05:00
layout: commands
2020-04-07 14:55:19 -04:00
page_title: 'Commands: ACL Bootstrap'
2023-01-26 12:42:13 -06:00
description: >-
The `consul acl bootstrap` command generates a new token with unlimited privileges to use for management purposes and outputs the token's details.
2018-10-24 10:24:29 -04:00
---
# Consul ACL Bootstrap
Command: `consul acl bootstrap`
2023-01-25 10:52:43 -06:00
Corresponding HTTP API Endpoint: [\[PUT\] /v1/acl/bootstrap](/consul/api-docs/acl#bootstrap-acls)
2022-01-10 12:40:11 -05:00
2023-01-04 21:19:33 +01:00
The `acl bootstrap` command generates a new token with unlimited privileges to use
for management purposes and outputs the token's details. Optionally, you can provide a Secret ID to use instead of generating a completely new token. You can create this bootstrapping token only once and afterwards bootstrapping
2018-10-24 10:24:29 -04:00
will be disabled. If all tokens are lost and you need to bootstrap again you can follow the bootstrap
2023-02-07 10:36:32 -06:00
[reset procedure](/consul/tutorials/security/access-control-troubleshoot).
2018-10-24 10:24:29 -04:00
2023-01-25 10:52:43 -06:00
The table below shows this command's [required ACLs](/consul/api-docs/api-structure#authentication). Configuration of
[blocking queries](/consul/api-docs/features/blocking) and [agent caching](/consul/api-docs/features/caching)
2022-01-10 16:44:56 -05:00
are not supported from commands, but may be from the corresponding HTTP endpoint.
| ACL Required |
| ------------ |
| `none` |
2018-10-24 10:24:29 -04:00
## Usage
2023-01-04 21:19:33 +01:00
Usage: `consul acl bootstrap [options] [FILE]`
If a file is supplied (or `-` for standard input), the new token's Secret ID is read from the file.
Otherwise, Consul creates a new one.
2018-10-24 10:24:29 -04:00
2020-03-26 19:03:22 +03:00
#### Command Options
2020-04-07 14:55:19 -04:00
- `-format={pretty|json}` - Command output format. The default value is `pretty`.
2020-03-26 19:03:22 +03:00
2018-10-24 10:24:29 -04:00
The output looks like this:
```text
AccessorID: 4d123dff-f460-73c3-02c4-8dd64d136e01
SecretID: 86cddfb9-2760-d947-358d-a2811156bf31
Description: Bootstrap Token (Global Management)
Local: false
Create Time: 2018-10-22 11:27:04.479026 -0400 EDT
Policies:
00000000-0000-0000-0000-000000000001 - global-management
```
2022-07-26 23:17:11 -07:00
#### API Options
@include 'http_api_options_client.mdx'
@include 'http_api_options_server.mdx'