import { createApiClient } from "../../common/api/client.js";
import { printResultToConsole } from "../../common/output.js";
export async function disable(argv) {
    const { account, project } = argv;
    const certId = argv["cert-id"];
    const client = createApiClient({ authToken: argv.authToken });
    const cert = await client.patch(`/v1/accounts/${account}/projects/${project}/mtls-certificates/${encodeURIComponent(certId)}`, {
        operation: "Failed to disable mTLS certificate",
        errorMessage: "Error: Failed to disable mTLS certificate.",
        body: { environments: [] },
    });
    printResultToConsole(`mTLS certificate '${cert.name}' (${cert.id}) disabled successfully\n` +
        `Certificate is now disabled for all environment types`);
}
//# sourceMappingURL=handler.js.map