EmmEEdu
Developer Shell Directory

CLI Command Center (Linux, Docker, K8s, npm, curl)

Essential terminal workflows, flags, and underlying system mechanics.

docker runRun Container from Image
docker

Creates a writeable container layer over the specified image and executes it with assigned ports, environment variables, and storage volumes.

docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=secret --name dev-postgres postgres:16-alpine
Spins up detached PostgreSQL container with mapped port 5432 and environment password.
docker run --rm -it alpine sh
Launches interactive shell in a lightweight Alpine container and removes container on exit.
Flags & Options:
-d, --detachRun container in background and print container ID.
-p, --publish <host:container>Publish a container's port(s) to the host machine.
-v, --volume <host:container>Bind mount a host volume into the container.
-e, --env <key=value>Set environment variables inside the running container.
--rmAutomatically remove the container when it exits.
kubectl getDisplay Kubernetes Resources
kubernetes

Fetches and displays one or many resources from the Kubernetes API server.

kubectl get (TYPE [NAME | -l label] | TYPE/NAME ...) [flags]
kubectl get pods -n production -o wide
Lists all running pods in the production namespace with IP addresses and host node names.
kubectl get services,ingress --all-namespaces
Lists all services and ingress routes across every namespace in the cluster.
Flags & Options:
-n, --namespace <name>Specifies target Kubernetes namespace.
-o, --output <format>Output format: wide, json, yaml, name.
-w, --watchWatch for real-time changes and events without polling.
curlTransfer Data from/to a Server
curl

Command line tool and library for transferring data with URLs supporting HTTP, HTTPS, FTP, WebSocket, and dozens more protocols.

curl [options] <url>
curl -i -X POST https://api.devatlas.io/v1/nodes -H "Content-Type: application/json" -d '{"name":"Redis"}'
Sends POST request with JSON body and prints full response headers and status code.
curl -sL https://example.com | grep "title"
Follows HTTP 301/302 redirects silently and greps for HTML title.
Flags & Options:
-X, --request <method>Specifies HTTP method (GET, POST, PUT, DELETE, PATCH).
-H, --header <header>Pass custom header to server.
-d, --data <data>HTTP POST data payload.
-i, --includeInclude HTTP response headers in the output.
-L, --locationFollow HTTP redirects automatically.
npm installInstall Package Dependencies
npm

Downloads and installs dependencies declared in package.json and generates/updates package-lock.json.

npm install [<package-spec>...] [flags]
npm install lucide-react framer-motion
Installs packages into node_modules and adds them to dependencies.
npm ci
Clean install: strictly installs from package-lock.json (ideal for automated CI/CD pipelines).
Flags & Options:
-D, --save-devSave package to devDependencies.
--legacy-peer-depsBypass strict peer dependency conflict checks.
--productionSkip installing devDependencies.