@Override
    protected int run() throws Exception {

        if (!Jenkins.get().hasPermission(Jenkins.ADMINISTER)) {
            return -1;
        }

        ConfigurationAsCode.get().export(stdout);
        return 0;
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
plugin/src/main/java/io/jenkins/plugins/casc/cli/ExportConfigurationCommand.java