diff --git a/cmd/scw/testdata/test-all-usage-iot-route-create-usage.golden b/cmd/scw/testdata/test-all-usage-iot-route-create-usage.golden index 452bf8a20b..81de037eb8 100644 --- a/cmd/scw/testdata/test-all-usage-iot-route-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-iot-route-create-usage.golden @@ -15,7 +15,7 @@ USAGE: scw iot route create [arg=value ...] ARGS: - [name] Route name + [name=] Route name [hub-id] ID of the route's hub [topic] Topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters [s3-config.bucket-region] diff --git a/internal/namespaces/iot/v1/iot_cli.go b/internal/namespaces/iot/v1/iot_cli.go index afee397047..c622f36baf 100644 --- a/internal/namespaces/iot/v1/iot_cli.go +++ b/internal/namespaces/iot/v1/iot_cli.go @@ -1087,6 +1087,7 @@ func iotRouteCreate() *core.Command { Required: false, Deprecated: false, Positional: false, + Default: core.RandomValueGenerator("route"), }, { Name: "hub-id",