
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
caddy-cloudflare-cli
Advanced tools
A powerful CLI tool for setting up and managing Cloudflare DNS records with Caddy reverse proxy. Easily deploy local services with public domains, automate DNS configuration, and manage SSL certificates using Cloudflare's API.
A powerful CLI tool for setting up and managing Cloudflare DNS records with Caddy reverse proxy. Easily deploy local services with public domains, automate DNS configuration, and manage SSL certificates using Cloudflare's API.
# Install with pip
pip install caddy-cloudflare-cli
# Or install with development dependencies
pip install caddy-cloudflare-cli[dev]
Before using this tool, you'll need a Cloudflare account and domain. Follow these steps:
If you don't already have a domain:
cruz.ns.cloudflare.com
and tim.ns.cloudflare.com
)For the most secure setup, create dedicated API tokens:
# Initialize configuration
caddy-cloudflare init
Follow the interactive prompts to configure your Cloudflare credentials and domain.
# Install Caddy locally
caddy-cloudflare install
# Or install Caddy system-wide (requires sudo)
sudo caddy-cloudflare install --system
# Deploy with interactive prompts
caddy-cloudflare deploy
# Deploy with specific options
caddy-cloudflare deploy --subdomain myapp --port 3000
# Using a custom IP (instead of auto-detection)
caddy-cloudflare deploy --ip 203.0.113.1
# List all deployments
caddy-cloudflare list
# Show all DNS records (not just deployments)
caddy-cloudflare list --all
# Delete a deployment
caddy-cloudflare delete myapp
# Start the Caddy proxy
caddy-cloudflare proxy start
# Check proxy status
caddy-cloudflare proxy status
# Stop the proxy
caddy-cloudflare proxy stop
# Reload proxy configuration
caddy-cloudflare proxy reload
# Run diagnostic checks
caddy-cloudflare debug
You can use environment variables instead of storing credentials in config files:
# API Token method (recommended)
export CLOUDFLARE_API_TOKEN="your-api-token"
# Least privilege method (recommended)
export CLOUDFLARE_ZONE_TOKEN="your-zone-token"
export CLOUDFLARE_DNS_TOKEN="your-dns-token"
# Global API key method (legacy)
export CLOUDFLARE_API_KEY="your-global-api-key"
export CLOUDFLARE_EMAIL="your-email@example.com"
# Domain configuration
export CLOUDFLARE_DOMAIN="yourdomain.com"
Contributions are welcome! Here's how you can contribute:
git checkout -b feature/my-new-feature
git commit -am 'Add some feature'
git push origin feature/my-new-feature
# Clone repository
git clone https://github.com/yourusername/caddy-cloudflare-cli.git
cd caddy-cloudflare-cli
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
We're especially interested in contributions for:
If you find a bug or want to request a feature, please create an issue:
## Description
A clear description of the issue or feature request
## Steps to Reproduce (for bugs)
1. Step 1
2. Step 2
3. ...
## Expected Behavior
What you expected to happen
## Actual Behavior
What actually happened
## Environment
- OS: [e.g., Ubuntu 22.04]
- Python version: [e.g., 3.11.2]
- Package version: [e.g., 0.1.0]
This project is licensed under the GNU General Public License v3.0.
FAQs
A powerful CLI tool for setting up and managing Cloudflare DNS records with Caddy reverse proxy. Easily deploy local services with public domains, automate DNS configuration, and manage SSL certificates using Cloudflare's API.
We found that caddy-cloudflare-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.