@cloudcoach/rest-auth
CLI tool for retrieving Salesforce REST Token based on Scratch org REST API URL, Username and Password. Token being written into 'environment.ts' -> 'restToken' property
Last updated 2 years ago by ohutsulyak-cc .
MIT · Original npm · Tarball · package.json
$ cnpm install @cloudcoach/rest-auth 
SYNC missed versions from official npm registry.

Salesforce REST Auth CLI tool for Angular based projects

Updates Angular project's environment.ts file with latest SF REST API token and creates proxy.conf.ts which can be used for comfortable local development through SF REST API.

How to use?

  • $ npm i -g @cloudcoach/rest-auth - installs package globally
  • $ sf-get-auth - inside Angular's root directory
  • Choose one of available options and follow proposed steps to either authenticate with new or use existing credentials

Available options (can be checked with $ sf-get-auth --help)

  • -d, --directory <pathToDirectory> - path to 'environment.ts' file. By default - seeks for environment.ts under src/environments or angular/src/environments
  • -t, --token <tokenPropertyName> - token's property name inside 'environment.ts' file. Defaults to 'token'

Current Tags

  • 2.0.0-beta-20                                ...           latest (2 years ago)

4 Versions

  • 2.0.0-beta-20                                ...           2 years ago
  • 2.0.0-beta-19                                ...           2 years ago
  • 2.0.0-beta-18                                ...           2 years ago
  • 2.0.0-beta-12                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 4
Last Month 0
Dependencies (3)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |