npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cliniq360/ondc-cli

v2.0.6

Published

Official CLI for the ONDC insurance API workflow.

Readme

ondc CLI

CLI for the ONDC insurance API workflow.


Features

  • Calls the ONDC insurance backend APIs directly
  • Covers the current ONDC insurance journey tool surface
  • Supports human-readable and JSON output
  • Includes a raw tool caller for the built-in ONDC API tool set
  • Uses https://prod.cliniq360.com as the default API base URL
  • Supports endpoint override with ONDC_API_BASE_URL
  • Supports optional ONDC_API_KEY
  • Can print the strict insurance AI workflow prompt via ondc workflow prompt

Installation

Install globally:

npm install -g @cliniq360/ondc-cli

Or run without installing:

npx @cliniq360/ondc-cli --help

Quick Start

# 1. The CLI uses the hosted API base URL by default
# https://prod.cliniq360.com

# 2. Inspect the available tool surface
ondc tools list

# 3. Print the strict AI workflow prompt
ondc workflow prompt

# 4. Start a journey
ondc journey start

# 5. Submit a single applicant
ondc forms applicant \
  --txn-id <TXN_ID> \
  --first-name Jane \
  --last-name Doe \
  --email [email protected] \
  --phone 9876543210 \
  --address "Bengaluru, Karnataka" \
  --gender F \
  --dob 1992-01-15 \
  --amount 500000 \
  --pincode 560001 \
  --height-foot 5 \
  --height-inch 4 \
  --weight 62

# 6. Trigger search and list offers
ondc journey trigger-search --txn-id <TXN_ID>
ondc offers list --txn-id <TXN_ID>

Use A Different API Endpoint

Override the default hosted API base URL with a shell environment variable:

ONDC_API_BASE_URL=http://localhost:7600 ondc tools list

Or export it for the current shell session:

export ONDC_API_BASE_URL=http://localhost:7600
export ONDC_API_KEY=your_api_key_if_required
ondc config show

You can also place these values in a .env file in the directory where you run ondc:

ONDC_API_BASE_URL=http://localhost:7600
ONDC_API_KEY=your_api_key_if_required

Command Groups

ondc config

  • ondc config set-format <pretty|json>
  • ondc config show

ondc workflow

  • ondc workflow list
  • ondc workflow prompt
  • ondc workflow quote-purchase
  • ondc workflow post-purchase
  • ondc workflow show <NAME>

ondc journey

  • ondc journey start [--txn-id <TXN_ID>]
  • ondc journey trigger-search --txn-id <TXN_ID>

ondc forms

  • ondc forms applicant ...
  • ondc forms family --input '{...}'
  • ondc forms buyer ...
  • ondc forms nominee ...

ondc offers

  • ondc offers list --txn-id <TXN_ID>
  • ondc offers select --txn-id <TXN_ID> --offer-item-id <OFFER_ID> [--add-ons '{"add_on_obj":[]}' ]

ondc orders

  • ondc orders form-url --txn-id <TXN_ID> --form-type <KYC|PAYMENT>
  • ondc orders init --txn-id <TXN_ID> --offer-item-id <OFFER_ID>
  • ondc orders confirm --txn-id <TXN_ID> --offer-item-id <OFFER_ID>
  • ondc orders status --txn-id <TXN_ID> --offer-item-id <OFFER_ID>
  • ondc orders transaction-status --txn-id <TXN_ID>

ondc policy

  • ondc policy cancellation-terms --order-id <ORDER_ID>
  • ondc policy cancel --txn-id <TXN_ID> --offer-item-id <OFFER_ID> --reason-id <ID> --notes <TEXT>
  • ondc policy notify --order-id <ORDER_ID> --channel <WHATSAPP|SMS> --mobile-number <PHONE>

ondc tools

  • ondc tools list
  • ondc tools inspect <NAME>
  • ondc tools call <NAME> --input '{...}'

Environment Variables

| Variable | Description | | ------------------- | --------------------------------------------------------------------------- | | ONDC_API_BASE_URL | Optional override for the default API base URL https://prod.cliniq360.com | | ONDC_API_KEY | Optional API key sent as the api_key request header |


Notes

  • ondc-cli calls the ONDC backend REST APIs directly.
  • ondc-cli works without an API key by default, but can send ONDC_API_KEY when your deployment requires it.
  • The published CLI defaults to https://prod.cliniq360.com and does not bundle secrets or a package-local .env file.
  • Set ONDC_API_KEY in your shell or in the current working directory's .env file when the backend requires api_key.
  • Use ONDC_API_BASE_URL only when you need a different API endpoint.
  • ondc workflow prompt prints the strict INSURANCE_WORKFLOW_TEMPLATE guidance so an AI agent can follow the intended ONDC tool chain.
  • The CLI prints parsed tool payloads by default. Use --json for clean automation output.
  • For complex payloads such as family floater submissions, use --input, --file, or pipe JSON through stdin.