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

curl -X GET http://api-endpoint/resource
Send a GET request to retrieve resource

curl -X POST -H 'Content-Type: application/json' -d '{"key":"value"}' http://api-endpoint/resource
Send a POST request with JSON data

curl -X PUT -H 'Content-Type: application/json' -d '{"key":"value"}' http://api-endpoint/resource/id
Update a resource with PUT

curl -X DELETE http://api-endpoint/resource/id
Delete a resource

Authentication

curl -X GET -H 'Authorization: Bearer TOKEN' http://api-endpoint/resource
Access authenticated endpoint with Bearer token

curl -X POST -d 'username=user&password=pass' http://api-endpoint/auth/token
Get auth token

curl -u username:password http://api-endpoint/resource
Basic authentication

Monitoring

curl http://api-endpoint/health
Check API health status

curl http://api-endpoint/metrics
Get API metrics

curl -v http://api-endpoint/resource
Verbose output showing request/response details

Debugging

curl -i http://api-endpoint/resource
Show response headers

curl -w 'Total time: %{time_total}s
' http://api-endpoint/resource
Measure response time

curl --trace output.txt http://api-endpoint/resource
Full trace of the request/response

Rate Limiting

curl -I http://api-endpoint/resource
Check headers only to see rate limit information

curl -X GET -H 'X-Rate-Limit-Bypass: secret-key' http://api-endpoint/resource
Bypass rate limiting (if supported)