Docs · CLI
The makofy command-line tool
Install the Makofy CLI with curl -fsSL https://makofy.com/install.sh | sh, run makofy login, then makofy deploy in your project folder: it uploads the folder, builds it and prints the app’s URL. The CLI runs on Linux and macOS (amd64 and arm64); environment variables, custom domains and rollbacks are managed in the dashboard.
Last updated · By the Makofy team (Muncar Ventures LLC)
Install
curl -fsSL https://makofy.com/install.sh | shThe install script detects your operating system and CPU, downloads the matching makofy-<os>-<arch> binary from makofy.com and moves it to /usr/local/bin (it asks for sudo if that folder isn’t writable). To install somewhere else, set MAKOFY_BIN_DIR:
curl -fsSL https://makofy.com/install.sh | MAKOFY_BIN_DIR="$HOME/.local/bin" shLog in
makofy login # prompts for email and password
makofy login --token <token> # or use an existing API tokenThe CLI stores your session in ~/.config/makofy/config.json (readable only by your user) and refreshes it automatically when it expires. The workspace comes from your account, so there is nothing else to configure.
Deploy
makofy deploy [--port N] [--type web|worker|cron] [--schedule "<cron>"] [--command "..."]makofy deploy packages the current folder, uploads it, and builds it exactly like a GitHub deploy: your Dockerfile if there is one, otherwise auto-detection (see what Makofy detects). It then waits for the build and the health check and prints the URL of a web app.
- What gets uploaded. In a git repository: the files git tracks plus untracked files that aren’t ignored, so
.gitignoreis respected. Outside git: everything except folders such as.git,node_modules,vendor,__pycache__,.next,dist,build,.venvandvenv. Symlinks and files over 50 MB are skipped. - Which app. The first run creates an app named after the folder (lowercase letters, digits and hyphens, at most 30 characters) and writes
.makofy.jsonwith its ID. Later runs deploy to the same app. - Uploads, not git. The CLI always deploys your local files, even for an app that is also connected to GitHub.
| Flag | What it does | Example |
|---|---|---|
--port N | The port your app listens on (default 8080). Makofy sets PORT to this value. | makofy deploy --port 3000 |
--type | Service type: web (default), worker or cron. | makofy deploy --type worker |
--schedule | A 5-field cron schedule. Required with --type cron. | --schedule "0 3 * * *" |
--command | The start command, replacing the image’s default. | --command "node bot.js" |
# a web app on port 3000
makofy deploy --port 3000
# a Discord bot as an always-on worker
makofy deploy --type worker --command "python bot.py"
# a job that runs once a day
makofy deploy --type cron --schedule "0 3 * * *" --command "python jobs/cleanup.py"Other commands
| Command | What it does |
|---|---|
makofy link <app-name> | Links the current folder to an existing app (writes .makofy.json). |
makofy apps | Lists your apps with their status and creation date. |
makofy status | Shows the linked app’s name, status and URL. |
makofy open | Opens the linked app’s URL in your browser. |
makofy logs | Prints the latest build log and the most recent log lines of the running app. It prints once; there is no follow mode. |
makofy version | Prints the CLI version. |
makofy help | Lists the commands. |
What the CLI doesn’t do (yet)
Environment variables and env groups, custom domains, instance types, add-ons and rollbacks are managed in the dashboard. See environment variables, custom domains and instance types.
FAQ
Frequently asked questions
How do I install the Makofy CLI?
Run curl -fsSL https://makofy.com/install.sh | sh. It installs a single makofy binary for Linux or macOS (amd64 or arm64) into /usr/local/bin.
Does makofy deploy use git?
It uses git only to decide which files to upload (respecting .gitignore). It always deploys your local files, not a commit from GitHub.
How do I deploy a worker or a cron job from the CLI?
Use makofy deploy --type worker --command "..." for a worker, and add --type cron --schedule "<5-field cron>" for a scheduled job.
Can I set environment variables from the CLI?
Not yet. Set them in the dashboard, per app or in a shared env group; they apply on the next deploy.
Is there a Windows build of the CLI?
No. The CLI is built for Linux and macOS; on Windows you can deploy from GitHub through the dashboard.
Related
Deploy your app in a few minutes.
Connect a GitHub repo or run makofy deploy. Flat price per app, 7-day free trial, card required.