Commands Cheat Sheet

Evaluating engineering tools? Get the comparison in Google Sheets

(Perfect for making buy/build decisions or internal reviews.)

Most-used commands
Your email is safe thing.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Connection

traefikctl connect
Connect to a running Traefik instance

traefik version
Display the Traefik version information

traefik --configFile=traefik.yml
Start Traefik with a specific configuration file

Configuration

traefik --api
Enable the dashboard/API

traefik --api.dashboard
Enable the dashboard

traefik --api.insecure
Enable insecure API usage (not recommended for production)

traefik --providers.docker
Enable Docker provider

traefik --providers.file.directory=/path/to/config
Load dynamic configurations from a directory

traefik --entrypoints.web.address=:80
Define an entrypoint named 'web' on port 80

traefik --entrypoints.websecure.address=:443
Define an entrypoint named 'websecure' on port 443

TLS Options

traefik [email protected]
Configure email for Let's Encrypt

traefik --certificatesresolvers.myresolver.acme.storage=acme.json
Specify ACME certificates storage file

traefik --certificatesresolvers.myresolver.acme.tlschallenge
Use TLS challenge for Let's Encrypt

traefik --certificatesresolvers.myresolver.acme.httpchallenge
Use HTTP challenge for Let's Encrypt

Metrics

traefik --metrics.prometheus
Enable Prometheus metrics

traefik --metrics.prometheus.entryPoint=metrics
Specify entrypoint for Prometheus metrics

traefik --metrics.prometheus.addEntryPointsLabels
Add entrypoints labels to Prometheus metrics

traefik --metrics.prometheus.addServicesLabels
Add services labels to Prometheus metrics

Logging

traefik --log.level=DEBUG
Set log level (DEBUG, INFO, WARN, ERROR)

traefik --log.filepath=/path/to/log
Set log file path

traefik --accesslog
Enable access logs

traefik --accesslog.filepath=/path/to/access.log
Specify access log file path

Dashboard Access

http://localhost:8080/dashboard/
Access the Traefik dashboard (default port)

curl -s http://localhost:8080/api/http/routers
Query the API for HTTP routers

curl -s http://localhost:8080/api/http/services
Query the API for HTTP services

curl -s http://localhost:8080/api/overview
Get system overview from API