Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pnm-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pnm-cli

A command line tool to create and delete private zones, entities, checks and agent_tokens.

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

How to install:

  • npm install -g or npm install pnm-cli
  • Add nodejs binaries to the path (if not already)

How to run:

Example commands:

Authenticating

Instead of using -t <tenant_id> --auth_token <auth_token> you can also supply your account username and API key such as:

pnm-cli --username <username> --apikey <api_key> --use_staging true <command>

Create

  • Create zone:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true create_zone
  • Create multiple zones:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true -c <count> create_zone
  • Create entity:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true create_entity
  • Create multiple entities:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true -c <count> create_entity
  • Create check:
pnm-cli -t <tenant_id> --auth_token <auth_token> -e <entity_id> -z <zone_id> --target <target> --url <url> --method <method> --use_staging true create_check
  • Create multiple checks:
pnm-cli -t <tenant_id> --auth_token <auth_token> -e <entity_id> -z <zone_id> --target <target> --url <url> --method <method> --use_staging true --target -c <count> create_check
  • Create agent token:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true create_agent_token
  • Create multiple agent tokens:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true -c <count> create_agent_token

Delete (File examples are provided for reference):

  • Delete zone:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true -z <zone_id> delete_zone
  • Delete multiple zones:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true -f <file_location> delete_zone
  • Delete entity:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true -e <entity_id> delete_entity
  • Delete multiple entities:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true -f <file_location> delete_entity
  • Delete check:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true -e <entity_id> --check_id <check_id> delete_check
  • Delete multiple checks:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true -f <file_location> delete_check
  • Delete agent token:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true --token_id <token_id> delete_agent_token
  • Delete multiple agent tokens:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true -f <file_location> delete_agent_token

Read:

  • List zones:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true list_zones
  • Account info:
pnm-cli -t <tenant_id> --auth_token <auth_token> --use_staging true account_info

FAQs

Package last updated on 21 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc