implement set vars method for cli