Removed reference to patch for acccess keys (#476)

* Removed reference to patch for acccess keys

* Create README.md
This commit is contained in:
Ian Geoghegan 2017-06-13 11:23:15 -07:00 коммит произвёл GitHub
Родитель 8177d41123
Коммит 6c97123202
1 изменённых файлов: 0 добавлений и 10 удалений

Просмотреть файл

@ -102,8 +102,6 @@ If you need to be able to authenticate against the CodePush service without laun
code-push access-key add "VSTS Integration"
```
By default, access keys expire in 60 days. You can specify a different expiry duration by using the `--ttl` option and passing in a [human readable duration string](https://github.com/jkroso/parse-duration#parsestr) (e.g. "2d" => 2 days, "1h 15 min" => 1 hour and 15 minutes). For security, the key will only be shown once on creation, so remember to save it somewhere if needed!
After creating the new key, you can specify its value using the `--accessKey` flag of the `login` command, which allows you to perform "headless" authentication, as opposed to launching a browser.
```shell
@ -112,14 +110,6 @@ code-push login --accessKey <accessKey>
When logging in via this method, the access key will not be automatically invalidated on logout, and can be used in future sessions until it is explicitly removed from the CodePush server or expires. However, it is still recommended that you log out once your session is complete, in order to remove your credentials from disk.
Finally, if at any point you need to change a key's name and/or expiration date, you can use the following command:
```shell
code-push access-key patch <accessKeyName> --name "new name" --ttl 10d
```
*NOTE: When patching the TTL of an existing access key, its expiration date will be set relative to the current time, with no regard for its previous value.*
### Proxy Support
By default, the `login` command will automatically look for a system-wide proxy, specified via an `HTTPS_PROXY` or `HTTP_PROXY` environment variable, and use that to connect to the CodePush server. If you'd like to disable this behavior, and have the CLI establish a direct connection to CodePush, simply specify the `--noProxy` parameter when logging in: