Giter Site home page Giter Site logo

Comments (3)

ddymko avatar ddymko commented on August 18, 2024

@ryan-c-dev

We'll update the readme to add in an example for the yaml config. Right now it's pretty bare bones as it only has 1 available field to work with

cat ~/.vultr-cli.yaml
api-key:

For vultr-cli plans list the fields you see Total, Next Page, Prev Page are the pagination fields. So with any list call you can configure how many items you want returned

  -c, --cursor string   (optional) Cursor for paging.
  -h, --help            help for list
  -p, --per-page int    (optional) Number of items requested per page. Default is 100 and Max is 500. (default 100)

So if I want to return a single plan the command would be

RICE PER MONTH		TYPE	REGIONS
vc2-1c-1gb	1		1024	25	1		1024		5vc2	[ewr ord dfw sea lax atl ams lhr fra sjc syd yto cdg nrt icn mia sgp]
======================================
TOTAL	NEXT PAGE			PREV PAGE
21	bmV4dF9fdmMyLTFjLTFnYg==

With the next page being the string to pass in to the -c, --cursor flag

As for the cheapest plans the $2.5 and $3.5 plans are not available through the API. The cheapest plan available through the API starts at $5

from vultr-cli.

ryan-c-dev avatar ryan-c-dev commented on August 18, 2024

Hey thanks a lot, keep up the great work!

from vultr-cli.

ddymko avatar ddymko commented on August 18, 2024

https://github.com/vultr/vultr-cli/blob/master/README.md#example-vultr-cliyaml-config-file

from vultr-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.