June 19, 2026 · by Meegrow Labs

What Is the curl Command? Fetch the Web From Your Terminal

You open a browser, type an address, and a page appears. It feels like magic, but underneath, your browser is doing one simple job: it asks a server for a page, and the server sends one back. What if you could ask for that page yourself, without ever opening a tab?

You can. And once you see how, the web stops feeling like magic and starts feeling like something you can command.

The curl command lets you fetch any webpage straight from your terminal: you type curl followed by a web address, and the server’s raw reply prints right on your screen, no browser required.

What is the curl command?

Think of a vending machine. You put in a request, it works for a second, and out comes a reply. The curl command works exactly like that. You give it a web address, it talks to the server for you, and it brings the page back as plain text.

No clicking, no tabs, no buttons. Just the raw answer the server would have sent your browser anyway. The name stands for “client URL” — a small tool whose whole job is to fetch things from the web.

How do I use curl?

The pattern is short. You type the tool, then the address you want:

curl example.com

Let’s break that apart. curl is the fetch tool. example.com is the address you’re asking for. Run the line, and the server’s reply prints on your screen.

That reply is the page text — the very same HTML a browser would load and then draw as a nice-looking page. With curl, you see the page in its raw form, the way the server actually sends it.

What does the output look like?

When you run curl example.com, you’ll see something like this:

<!doctype html>
<html>
<head>
    <title>Example Domain</title>
...

That’s the page. Your browser would take this same text and turn it into the page you normally see. Here, you’re looking at the answer directly, with nothing in between.

Why does the curl command matter?

Because this is how real tools and scripts talk to the web. When an app pulls live cricket scores, checks a UPI payment, or loads your Flipkart order status, it isn’t clicking through a browser. It’s making a request much like the one you just made.

One line, any site, data straight to you. Once you can fetch a page from the terminal, you can fetch data from anywhere — and later, you can connect that data to your own programs and AI agents.

How do I try curl right now?

You don’t need to install anything special; curl already ships with most Macs and Linux systems, and modern Windows too. Try this:

  • Open your terminal.
  • Type curl example.com and press Enter.
  • Watch the page text print out.

That’s it. You just made your first web request by hand. If you’re new to working in the terminal, the free Zero to AI Hero course walks you through every step from the very beginning, in plain Hindi and English.

This lesson builds on understanding what a web address actually is, so if the parts of a URL feel fuzzy, it’s worth a quick look back. Next up, you’ll learn to ask for exactly what you want using query parameters — the small extra bits you add to an address to refine your request.

Key takeaways

  • The curl command fetches a webpage from your terminal — no browser or clicking needed.
  • The pattern is simple: curl followed by a web address, like curl example.com.
  • What prints out is the raw page text — the same HTML a browser would load and display.
  • This is exactly how real tools, scripts, and apps fetch data from the web.
  • Try it now: open a terminal and run curl example.com to make your first request by hand.

🚀 Take the full free course: Zero to AI Hero — learn to build with AI from scratch. New lessons daily, in Hindi & English.

Meegrow Labs

We help India go from zero to AI hero — learn to use & build with AI from scratch, in Hindi & English. Start the free course →

Want to actually learn this?

151 free 2-minute lessons — from "what's a file?" to building with AI.

▶ Start the free course