github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/website/pages/docs/commands/acl/token-create.mdx (about) 1 --- 2 layout: docs 3 page_title: 'Commands: acl token create' 4 sidebar_title: token create 5 description: | 6 The token create command is used to create new ACL tokens. 7 --- 8 9 # Command: acl token create 10 11 The `acl token create` command is used to create new ACL tokens. 12 13 ## Usage 14 15 ```plaintext 16 nomad acl token create [options] 17 ``` 18 19 The `acl token create` command requires no arguments. 20 21 ## General Options 22 23 @include 'general_options.mdx' 24 25 ## Create Options 26 27 - `-name`: Sets the human readable name for the ACL token. 28 29 - `-type`: Sets the type of token. Must be one of "client" (default), or 30 "management". 31 32 - `-global`: Toggles the global mode of the token. Global tokens are replicated 33 to all regions. Defaults false. 34 35 - `-policy`: Specifies a policy to associate with the token. Can be specified 36 multiple times, but only with client type tokens. 37 38 ## Examples 39 40 Create a new ACL token: 41 42 ```shell-sessionnomad acl token create -name="my token" -policy=foo -policy=bar 43 Accessor ID = d532c40a-30f1-695c-19e5-c35b882b0efd 44 Secret ID = 85310d07-9afa-ef53-0933-0c043cd673c7 45 Name = my token 46 Type = client 47 Global = false 48 Policies = [foo bar] 49 Create Time = 2017-09-15 05:04:41.814954949 +0000 UTC 50 Create Index = 8 51 Modify Index = 8 52 ```