github.com/smintz/nomad@v0.8.3/website/source/docs/commands/acl/token-create.html.md.erb (about) 1 --- 2 layout: "docs" 3 page_title: "Commands: acl token create" 4 sidebar_current: "docs-commands-acl-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 ``` 16 nomad acl token create [options] 17 ``` 18 19 The `acl token create` command requires no arguments. 20 21 ## General Options 22 23 <%= partial "docs/commands/_general_options" %> 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 "management". 30 31 * `-global`: Toggles the global mode of the token. Global tokens are replicated to all regions. Defaults false. 32 33 * `-policy`: Specifies a policy to associate with the token. Can be specified multiple times, 34 but only with client type tokens. 35 36 ## Examples 37 38 Create a new ACL token: 39 40 ``` 41 $ nomad acl token create -name="my token" -policy=foo -policy=bar 42 Accessor ID = d532c40a-30f1-695c-19e5-c35b882b0efd 43 Secret ID = 85310d07-9afa-ef53-0933-0c043cd673c7 44 Name = my token 45 Type = client 46 Global = false 47 Policies = [foo bar] 48 Create Time = 2017-09-15 05:04:41.814954949 +0000 UTC 49 Create Index = 8 50 Modify Index = 8 51 ```