Will513r / command-line-VWC

1 stars 0 forks source link

Create environmental,variables.html #40

Closed Will513r closed 10 months ago

Will513r commented 10 months ago

Wrote a basic use case of the need for environmental variables and how I can use them with my windows machine. Do we use API's in the terminal?

jeromehardaway commented 10 months ago

Wrote a basic use case of the need for environmental variables and how I can use them with my windows machine. Do we use API's in the terminal?

Sure, environmental variables are like secret codes that your program uses to access different tools and services. Imagine you have a password for an online service that your program needs to use. Instead of putting that password directly in your program (which is risky), you store it in an environmental variable on your Windows machine. That way, your program can use the password without it being exposed in your code.

To set this up on Windows, you can add the variable through the system settings, or just type something like set MY_SECRET=supersecret in the Command Prompt, where MY_SECRET is your variable's name, and supersecret is its value.

And about using APIs in the terminal, it's not common to use them directly there. But you can use tools like curl in the terminal to send requests to APIs, which is handy for testing or quick tasks.