瀏覽代碼

Update Windows command to support prettified json licenses (#40375)

James Rodewig 6 年之前
父節點
當前提交
5bbdc809aa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/reference/licensing/update-license.asciidoc

+ 1 - 1
docs/reference/licensing/update-license.asciidoc

@@ -92,7 +92,7 @@ On Windows machine, use the following command:
 
 [source,shell]
 ------------------------------------------------------------
-gc .\license.json |  Invoke-WebRequest -uri http://<host>:<port>/_license -Credential elastic -Method Put -ContentType "application/json"
+Invoke-WebRequest -uri http://<host>:<port>/_xpack/license -Credential elastic -Method Put -ContentType "application/json" -InFile .\license.json
 ------------------------------------------------------------
 
 In these examples,