Komut satırı
cdnctl kullanım rehberi
Paneldeki müşteri-facing işlemleri terminal, script veya AI agent üzerinden yapmak için cdnctl kullanılır.
Platform yardımına dönKurulum ve update
Dağıtılan cdnctl binary Go ile derlenir; PHP, Composer, Python, Node.js veya kubectl gerektirmez.
curl -fsSL https://cdn.com.tr/downloads/cdnctl/install.sh | sh
cdnctl --version
cdnctl update --check
cdnctl update --yes
Login
Login token değerini ~/.cdn/config.json içine kaydeder. Komut çıktısı user id, account id veya email alanlarını basmamalıdır.
cdnctl login --email <customer@example.com> --password <password>
cdnctl accounts list
cdnctl configure --endpoint https://cdn.com.tr --token <access-token>
Managed Container akışı
Bu komutlar paneldeki app create, deploy, status, logs, import ve scheduled job akışlarının terminal karşılığıdır.
cdnctl container registry-credentials create --account <account_uuid> --name docker --registry-url https://index.docker.io/v1/ --username <user> --password <token>
cdnctl container apps create --account <account_uuid> --name <app_name> --image <registry>/<image> --tag <tag> --port <port> --healthcheck /health --domain <api.example.com>
cdnctl container imports database --account <account_uuid> --app <app_uuid> --file source.sql.gz
cdnctl container imports files --account <account_uuid> --app <app_uuid> --file app-data.tar.gz --target-path /app/data
cdnctl container jobs create --account <account_uuid> --app <app_uuid> --name <job_name> --schedule "*/30 * * * *" --method POST --path "/jobs/run" --secret-header-name X-Token --secret-source JOB_TOKEN
cdnctl container apps deploy --account <account_uuid> --app <app_uuid>
cdnctl container apps wait --account <account_uuid> --app <app_uuid> --status running --timeout 300
cdnctl container apps status --account <account_uuid> --app <app_uuid>
cdnctl container apps logs --account <account_uuid> --app <app_uuid> --tail 100
Object Storage control plane
Bucket oluşturma, access key üretme ve app binding işlemleri için cdnctl kullanılır. S3 uyumlu object işlemleri için AWS CLI kullanılır.
cdnctl object-storage buckets create --account <account_uuid> --name app-media
cdnctl object-storage access-keys create --account <account_uuid> --bucket <bucket_uuid>
cdnctl object-storage bindings create --account <account_uuid> --app <app_uuid> --bucket <bucket_uuid> --access-key <key_uuid> --env-prefix S3