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 🙏

© 2024 – Pkg Stats / Ryan Hefner

vrest-cli

v0.0.2

Published

Command line interface for vREST APIs

Downloads

5

Readme

vrest-cli

  1. Exports the records (test cases/ API mocks) which are stored in vREST.
  2. Import records in vREST.
  3. This utility can be useful to maintain backup / version control of your vREST records.

Prerequisites:

  • Node.js - Download and Install Node.js. You can also follow this wiki (https://nodejs.org/en/download/package-manager/)

Installation / Update:

sudo npm install -g vrest-cli

  • sudo is optional. For windows, remove sudo from the above command.

Usage:

vrest-cli --email=<vrest_email> --password=<vrest_password> [--apicall="<name_of_api>"]

Options:

    -e, --email      : Email ID through which you have registered on vREST
    -p, --password   : Password of your vREST account
    -a, --apicall    : API call to invoke. Supported values are import, export.

Note: Each API call has their own set of arguments.

API Calls:

The following APIs are supported:

  1. export To export vREST test cases. This API call accepts the following additional arguments:

     -u, --url          : Provide the test case list URL here. You can find
                          the test case list URL by going to your vREST
                          instance and select Test Cases tab. Now click on
                          button "Copy Current Test Case List URL" available
                          in Left hand side, below the "Filters section".
                          Provide the copied URL in this option. Ensure that
                          you enclose URL in double quotes.
     -f, --filepath     : [Optional] Absolute file path where records should
                          be exported
  2. import To import vREST test cases. This API call accepts the following additional arguments:

     -U --url           : Provide the test case list URL here. This tool
                          will extract the instance and project id from the
                          URL.
     -f, filepath       : Absolute file path from where the records to be
                          imported
     -t, --testsuiteid  : test suite id into which records will be imported.
     -s,--selectedtestsuite: Value can be 1 or 0. If value is 1 then records
                          will inserted into the specified testsuiteid
                          otherwise it will use the test suite id from the
                          exported file.
      -c, --create      : Value can be 1 or 0. If value is 1 then new
                          records will be created otherwise existing records
                          will be updated.
      -m, --from        : Value can be json, swagger or postman.
  3. More APIs later, stay tuned ...