intgrating cli env and entry with cmd_stack