public Cli createCli() {
        if (dependencyResolverFactory == null) {
            dependencyResolverFactory = (config, env) -> {
                return new MavenDependencyResolver(EnvironmentVariable.SMITHY_MAVEN_CACHE.get());
            };
        }

        return new Cli(new SmithyCommand(dependencyResolverFactory), classLoader);
    }
Creates a runnable CLI.

@return Returns the created CLI.
smithy-cli/src/main/java/software/amazon/smithy/cli/SmithyCli.java