add setting to support cli

add setting to support cli