Can we alter warehouse size in snowflake from dbt?

You can change which warehouse size you use, see this package for an example: GitHub - Montreal-Analytics/dbt-snowflake-utils: Snowflake-specific utility macros for dbt projects.

Note sure what you mean by this though?