Licenses

Delete

licenses delete byid

sam licenses delete byid 1
> Successfully deleted the license with the ID "1".

Get

licenses get byid

sam licenses get byid 2 \
    --fields "id,name,manufacturer.name,order_number"
> id: 2
> name: Acrobat
> manufacturer.name: Adobe
> order_number: 11815643
sam licenses get search --fields "id,name,manufacturer.name,purchase_date.date"
> id: 2
> name: Acrobat
> manufacturer.name: Adobe
> 
> id: 3
> name: InDesign
> manufacturer.name: Adobe
> 
> id: 4
> name: Office
> manufacturer.name: Microsoft

Patch

licenses patch byid

sam licenses patch byid 1 \
    --seats 50
> Successfully updated the license with the ID "1" named "Photoshop" with "50" seats.

Post

licenses post create

sam licenses post create \
    --name "Chocolatey" \
    --seats 100 \
    --category_id 1 \
    --manufacturer_id 2
> Successfully create a licenses with the ID "5" named "Chocolatey" with "100" seats.