diff --git a/cmd/create_device.go b/cmd/create_device.go index 63f663b4..33638712 100644 --- a/cmd/create_device.go +++ b/cmd/create_device.go @@ -76,6 +76,10 @@ packet device create --hostname [hostname] --plan [plan] --facility [facility_co request.UserData = userdata } + if customdata != "" { + request.CustomData = customdata + } + if len(tags) > 0 { request.Tags = tags }