Spack raises an error if add target in the command line when using environments. Another mechanism have to be set.