diff --git a/README.md b/README.md index 1d95113..6924f45 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Simply run `npm i azure-devops-npm-auth --save-dev`. First, add a pre-installation script to your `package.json` file like so: ```javascript "scripts": { - "preinstall": "azure-devops-npm-auth" + "preinstall": "npx azure-devops-npm-auth" ... }, ``` @@ -42,7 +42,7 @@ If you want to use your own Azure Active Directory application, it's possible to ```javascript "scripts": { - "preinstall": "azure-devops-npm-auth --client_id='xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' --tenant_id='xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'" + "preinstall": "npx azure-devops-npm-auth --client_id='xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' --tenant_id='xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'" ... }, ``` @@ -62,14 +62,14 @@ You also need to add the required API permissions to have '`Azure DevOps user_im To disable authentication within CI environments add the `--ci` flag which skips authentication when the `TF_BUILD` environment variable is set (which is automatically set in Azure DevOps build pipelines): ```javascript "scripts": { - "preinstall": "azure-devops-npm-auth --ci" + "preinstall": "npx azure-devops-npm-auth --ci" ... }, ``` It's also possible to specify a custom environment variable: ```javascript "scripts": { - "preinstall": "azure-devops-npm-auth --ci=MY_CUSTOM_VARIABLE" + "preinstall": "npx azure-devops-npm-auth --ci=MY_CUSTOM_VARIABLE" ... }, ``` @@ -80,7 +80,7 @@ You can pass in a path to customize the directory to look in for the project's . ```javascript "scripts": { - "preinstall": "azure-devops-npm-auth --project_base_path=./configs" + "preinstall": "npx azure-devops-npm-auth --project_base_path=./configs" ... }, ```