Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 468 Bytes

File metadata and controls

13 lines (10 loc) · 468 Bytes

Chaining commands

Commands may be chained, and attributes returned by a command can be reinjected in a subsequent command, using JQ queries within {{}} placeholders:

Create a Nic and link it to a VM:

octl iaas nic create --subnet-id subnet-foo -o json | octl iaas nic link {{.NicId}} --vm-id i-foo --device-number 7

Delete all subnets from a net:

octl iaas subnet list --net-id vpc-foo -o json | octl iaas subnet del '{{.[].SubnetId}}'