ebsarr / packet

packet, a CLI tool to manage packet.net services
Other
40 stars 14 forks source link

`packet admin list-projects` only returns 10 projects #33

Open vielmetti opened 6 years ago

vielmetti commented 6 years ago

I'm managing a lot of projects, and I went to list them with packet admin list-projects. The command returns 10 projects, but I have many more than that.

https://www.packet.net/developers/api/projects/ defines the GET /projects API call with a per_page attribute, and that query defaults to 10 items per page, so that's my guess as what's going on.

per_page
integer in query
items per page, default to 10, max 1_000
ebsarr commented 6 years ago

I think this is being addressed in the SDK here . Once pagination is supported for projects I'll add support for it in the CLI .