Cli: factorize loading