Put any folder online from your terminal

The free hosting command deploys the folder you're in with a single command. No account, no config, no build step.

How it works

  1. 01

    Install the CLI

    One command: "npm i -g hosting". Or skip installing entirely and run it with "npx hosting".

  2. 02

    Run it in any folder

    Type "hosting" inside the folder you want online. It uploads everything — HTML, CSS, JS, images — in seconds.

  3. 03

    Get your links

    You get a public live-site link and a private claim link. Open the claim link and sign in to manage the site from your dashboard.

Installing

Install the hosting package from npm (requires Node.js 18 or newer):

npm i -g hosting

Then deploy any folder by running a single command inside it:

cd my-website
hosting

Prefer not to install anything? Run it directly:

npx hosting

Hidden files (like .env), node_modules, and OS junk files are skipped automatically. Limits: 500 files, 50 MB per site.

What you get back

Every deploy prints two links:

Uploading 3 files (12.4 KB)...

  Live site:   https://1freehosting.com/s/happy-panda-482
  Claim link:  https://1freehosting.com/claim/xxxxxxxx-...

The live site link is public — share it with anyone. The claim linkis private and single-use: open it and sign in to attach the site to your free account, so you can rename it, update files, or pick a custom address from the dashboard. Claim it soon — the link can't be recovered if lost.

All commands

hostingDeploy the current folder
hosting deploy <dir>Deploy a specific folder
hosting claimOpen the last deploy's claim link in your browser
hosting openOpen the last deploy's live site in your browser
hosting --name <name>Deploy with a custom site name
hosting --claimDeploy, then open the claim link right away

The CLI is open source — browse the code on GitHub or see it on npm.