CLI to disable Cloudflare without having to access Cloudflare Dashboard
A CLI tool to manage Cloudflare proxy settings for your DNS records. Easily enable or disable Cloudflare proxy (orange cloud) for your domains.
No installation required! Just run:
npx disable-cloudflare@latest
npm install -g disable-cloudflare@latest
Then run:
disable-cloudflare
Set your Cloudflare API token as an environment variable:
export CLOUDFLARE_TOKEN="your_cloudflare_token"
Or create a .env file in your project:
CLOUDFLARE_TOKEN="your_cloudflare_token"
CLOUDFLARE_TOKEN environment variableSimply run:
npx disable-cloudflare
The CLI will guide you through:
When you disable Cloudflare proxy on a DNS record:
This is useful when you need to:
⚠️ Note that changes may take a few minutes to propagate.
git clone https://github.com/midudev/disable-cloudflare-cli.git
cd disable-cloudflare-cli
bun install
bun start
bun run build
.
├── index.ts # Main application
├── i18n.ts # Internationalization (ES/EN)
├── types.ts # TypeScript interfaces
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This file
⚠️ Important: Never share your Cloudflare token. Keep .env in .gitignore.
MIT
Created by midudev
Built with ❤️ using @clack/prompts