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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@postqode/cli

v0.1.34

Published

Command-line interface for Postqode API testing framework

Readme

@postqode/cli

A powerful command-line tool for running API test suites and converting API collection formats. Automate your API testing workflow with comprehensive reporting and format conversion capabilities.


🚀 Installation

Install globally via npm:

npm install -g @postqode/cli

Verify installation:

postqode -V

📖 Usage

Global Options

| Option | Description | |--------|-------------| | -V, --version | Output the CLI version | | -v, --verbose | Enable verbose output for debugging | | -h, --help | Display help information |

Commands

Execute Test Suites

Run API test suites with comprehensive reporting options:

postqode execute [options]

Options:

| Option | Description | Default | |--------|-------------|---------| | -s, --suite <file> | Test suite file path (e.g. _meta.suite.yaml) | Required | | -w, --workspace <dir> | Workspace directory | Current project directory | | -c, --config <name> | Run configuration name (profile for environment/settings) | Default | | --report-formats <formats> | Report formats to generate (html, junit, overview) | html | | --report-dir <dir> | Directory to save reports | Current directory |

Examples:

# Run a test suite with default HTML report
postqode execute -s testSuites/MySuite/_meta.suite.yaml

# Run with multiple report formats
postqode execute -s testSuites/MySuite/_meta.suite.yaml --report-formats html junit

# Run with custom workspace and report directory
postqode execute -s testSuites/MySuite/_meta.suite.yaml -w /projects/myWorkspace --report-dir reports

Convert API Collections

Convert between OpenAPI, Postman Collections, and Postqode test formats:

postqode convert [options]

Options:

| Option | Description | Example | |--------|-------------|---------| | -i, --input <file> | Input file or URL (OpenAPI, Postman) | openapi.yaml | | -o, --output <file> | Output file | collection.json |

Examples:

# Convert OpenAPI to Postman Collection
postqode convert -i openapi.yaml -o collection.json

# Convert Postman Collection to Postqode Test Suite
postqode convert -i collection.json -o testSuites/MySuite/_meta.suite.yaml

📊 Reporting

The execute command supports multiple reporting formats:

  • HTML → Human-readable execution summary with test results
  • JUnit → XML format for CI/CD pipelines (Jenkins, GitLab, etc.)
  • Overview → Minimal summary report for quick validation

Reports are saved in the --report-dir directory (default: current workspace).


🏗️ Example Workflow

  1. Convert OpenAPI to Test Suite:

    postqode convert -i openapi.yaml -o testSuites/MySuite/_meta.suite.yaml
  2. Execute test suite with reports:

    postqode execute -s testSuites/MySuite/_meta.suite.yaml --report-formats html junit
  3. Check generated reports in the /reports directory


🎯 Best Practices

  • ✅ Always use workspace (-w) to organize test suites
  • ✅ Use run configurations (-c) for different environments (e.g. Dev, QA, Prod)
  • ✅ Store test suites under testSuites/ with _meta.suite.yaml as entry points
  • ✅ Automate CLI execution inside CI/CD pipelines (e.g. Jenkins, GitHub Actions)

🔧 Troubleshooting

| Issue | Solution | |-------|----------| | Command not found | Ensure @postqode/cli is installed globally | | Permission issues | Use sudo npm install -g @postqode/cli (Linux/macOS) | | Invalid suite file | Verify _meta.suite.yaml structure |


🤝 Contributing

We welcome contributions! Please feel free to submit issues and pull requests.


📄 License

This project is licensed under the Apache License 2.0.


🆘 Support

For support and questions, please visit our documentation or create an issue in the repository.


Keywords: API testing, CLI tool, test automation, OpenAPI, Postman, test suites, CI/CD, reporting