Installation
Get Hostify up and running in under 2 minutes.
Latest Version: 0.2.0 - Now with CLI support!
Requirements
🐍 Python >= 3.9
☁️ Cloudflare account with a domain
🔑 API Token from Cloudflare
Install Hostify
Install from PyPI using pip:
pip install hostify
Cloudflare Setup
Step 1: Get API Token
Go to Cloudflare API Tokens
Click “Create Token”
Use “Edit Cloudflare Zero Trust” template or create custom token with:
Account → Cloudflare Tunnel → Edit
Zone → DNS → Edit
Zone → Zone → Read
Copy the token
Tip
For detailed Cloudflare setup instructions, see the Cloudflare Setup Guide
Step 2: Set Environment Variable
Windows (PowerShell):
$env:CF_API_TOKEN="your_token_here"
Linux/Mac:
export CF_API_TOKEN="your_token_here"
Permanent Setup:
For Linux/Mac, add to ~/.bashrc or ~/.zshrc:
echo 'export CF_API_TOKEN="your_token_here"' >> ~/.bashrc
For Windows, use System Environment Variables:
setx CF_API_TOKEN "your_token_here"
Step 3: Add Domain to Cloudflare
Make sure your domain is added to Cloudflare and nameservers are configured.
Verify Installation
Test your installation:
from hostify import Host
print("Hostify installed successfully!")
Note
If you encounter any issues, check the Troubleshooting guide.