Declaring machine size in pipeline specs (or via CLI)

Is there a way to declare the machine size when using pipeline specs?

We’re defining our pipelines in code, but every time we call codefresh replace pipeline, it resets the pipeline’s machine size to the default.

I haven’t been able to find a way to change the pipeline size using the CLI, so every time we replace a pipeline that uses a non-default machine size, we have to log into the console and change it.