Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Use pgutil to create a feed



  • The documentation at https://docs.inedo.com/docs/proget-api-feeds-create suggests I can use pgutil feeds create to create a new feed, however it seems the latest release available on Github does not have that option available, and using the API with PowerShell throws a type error as the endpoint is expecting a very specific type of payload, and a PowerShell hashtable (which is the most common way to interact with a JSON body-based api) doesn't work.

    Is there a specific version of pgutil.exe I should be using to create new feeds?

    9417696e-9d4b-4f33-aba4-cd87f5e76956-image.png

    cafb6b50-ed71-4918-af19-03ebafe26c99-image.png


  • inedo-engineer

    Hi @steviecoaster,

    We're currently working on the pgutil feeds commands, and expected create and update to be finished in a week or so. In the mean time, I just published pgutil-1.1.2, so please check that out - it will have a basic version of pgutil feeds create.

    As for the PowerShell command, you'll need to pass the JSON structure that's documented in that article. You would want to use something like ConvertTo-Json to convert a Hash table to JSON.

    -- Dean



  • Ha, It was a goofy issue. I wasn't paying attention and had the Body defined as a string in my proxy function. 😂

    This is working nicely now!
    a8371438-7b61-4e65-b44f-002635d12fb5-image.png


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation