npm.io
0.0.12 • Published 4 years agoCLI

pcaf-cli

Licence
MIT
Version
0.0.12
Deps
19
Size
133 kB
Vulns
24
Weekly
0

Install

Generate Personal Access Token: https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=preview-page

edit below .npmrc

registry=https://pepsicoit.pkgs.visualstudio.com/Commercial_IT/_packaging/pep_pfna_cli_audit/npm/registry/

always-auth=true

; begin auth token //pepsicoit.pkgs.visualstudio.com/Commercial_IT/_packaging/pep_pfna_cli_audit/npm/registry/:username=PepsiCoIT //pepsicoit.pkgs.visualstudio.com/Commercial_IT/_packaging/pep_pfna_cli_audit/npm/registry/:_password= //pepsicoit.pkgs.visualstudio.com/Commercial_IT/_packaging/pep_pfna_cli_audit/npm/registry/:email=npm requires email to be set but doesn't use the value //pepsicoit.pkgs.visualstudio.com/Commercial_IT/_packaging/pep_pfna_cli_audit/npm/:username=PepsiCoIT //pepsicoit.pkgs.visualstudio.com/Commercial_IT/_packaging/pep_pfna_cli_audit/npm/:_password= //pepsicoit.pkgs.visualstudio.com/Commercial_IT/_packaging/pep_pfna_cli_audit/npm/:email=npm requires email to be set but doesn't use the value ; end auth token

======

npm install pcaf-cli -g

======

PCAF CLI

Usage: pcaf [options] [command]

                           __                  _   _ 
  _ __     ___    __ _   / _|           ___  | | (_)
 | '_ \   / __|  / _` | | |_   _____   / __| | | | |
 | |_) | | (__  | (_| | |  _| |_____| | (__  | | | |
 | .__/   \___|  \__,_| |_|            \___| |_| |_|
 |_|                                                
	Command line interface for pcaf API
	0.0.7

Options:
  -V, --version                 output the version number
  -s, --save               Save output to key
  -i, --init                    Initializes the cache
  -h, --help                    display help for command

Commands:
  cache [options] [key] [path]  Shows value of key in the cache
  spawn                         spawns process
  login [options]               Show login token
  user                          Test Protected API
  open [cacheRef]               open [cacheRef]
  api [options]                 Call an api
  couch [options] [query]       couch client
  gls                           Test Protected API GLS
  help [command]                display help for command
  
 

Potential

  • commander-completion
  • couch query
  • logfile query

Credits

Elumalai, Sankar: provided sample login, creds and test endpoint

https://www.npmjs.com/package/jsonpath-plus

Base project based on Pizza CLI