Futrou CLI is a command-line tool for deploying and managing resources on Futrou Cloud — serverlets, proxies, DNS zones, networks, storages, statico websites, projects and more.
curl -fsSL https://futrou.com/install.sh | bashirm https://futrou.com/install.ps1 | iexRequires Node.js and npm.
npm install -g futrou
# or run without installing
npx futrou --helpfutrou upgrade # upgrade to latest
futrou upgrade 1.2.0 # upgrade/downgrade to specific version- linux/amd64, linux/arm64, darwin/amd64, darwin/arm64, windows/amd64, windows/arm64, freebsd/amd64, freebsd/arm64
futrou login # sign in (opens the browser)
futrou init config # create futrou.json (or: -f futrou.yaml)
futrou deploy --dry-run # show the plan
futrou deploy # apply it after confirming (alias: futrou up)
futrou serverlet ls # list serverlets
futrou logs web # stream the logs of the serverlet "web"
futrou down # delete everything in the project, then the project
futrou init mcp # let AI coding agents use Futrou
futrou init skillsEvery resource has the same verbs: ls, show, create, update and rm (the older list, get, inspect, delete and plural names such as serverlets still work). The full list of commands and flags is in the commands.
futrou deploy validates futrou.json, prints a Terraform-style plan and asks [y/N] before applying it. Pass -y to skip the prompt (it is skipped automatically when CI=true) or --dry-run to only show the plan. futrou up is an alias. futrou down (alias teardown) plans the deletion of every resource in the project and then the project itself, with the same confirmation rules.
The project is described in the first of these files found in the current directory (or the one given with -f): futrou.json, futrou.js, futrou.cjs, futrou.mjs, futrou.ts, futrou.yaml, futrou.yml, and last a Docker Compose file (compose.yaml, compose.yml, docker-compose.yaml, docker-compose.yml). YAML is converted to the JSON form and validated the same way. When the CLI updates the file (config pull, or the lock refresh after a deploy) it keeps the format; JS and TS configs are code and are never rewritten.
- Several projects in one directory:
futrou deploy --project-name prod(or-p prod) (alsodownandconfig) readsfutrou.prod.jsonfirst (or.js,.yaml, ... in the usual order), so a directory can holdfutrou.dev.json,futrou.prod.jsonand so on. A project file without its ownprojectis named after the flag. If no such file exists, the default config is used and renamed to that project. regionsets the default region (name or ID) of every resource except DNS; a resource's ownregionIdwins.installCommand(for examplenpm ci):- Runs once per device and project folder, in the config's folder, and again only when the command changes or fails.
- Its output is streamed, and a failure stops the deploy before any request.
buildCommand(for examplenpx astro build):- Runs before every
futrou deployandfutrou statico deploy, also with--dry-run. - With both set,
futrou deployalone builds and deploys.
- Runs before every
- A serverlet's
needslists the serverlets it waits for:db,db:startedordb:healthy. They are created after, and deleted before, the ones they need. - Like services in Docker Compose,
networks,storages,statico,serverlets,proxies,dnsandcronscan be a list of items or an object whose keys are the names (the domain forproxiesanddns):serverlets: { web: { image: nginx } }. Anameinside an item wins over its key. The CLI itself writes lists. - A serverlet's
entrypointis one string such asnode server.js. - Docker Compose: with no futrou config,
futrou deployconverts the Compose file: services become serverlets, networks and named volumes become networks and storages,depends_onbecomesneeds. Options without a Futrou equivalent are logged as warnings and skipped. Futrou-only settings such asserverletPlanIdgo inx-futroumappings; see examples/docker-compose.yml. The Compose file is never rewritten.
Every option is set in examples/futrou.json, examples/futrou.yaml and examples/futrou.mjs. futrou init config creates a starter file.
Commands use singular names with ls and rm (the older plural names, list and delete still work as hidden aliases).
Generated by make build-docs; do not edit by hand. [...] is optional and <...> is a value.
LOG-OPTIONS is [--offset <int>] [--limit <int>] [--search <string>] [--start-at <string>] [--end-at <string>] [--tail] [--live].
# global options: --api-url <string>, --api-token|--api-key <string>, --log-level <string>, --local, --dev, --debug
futrou deploy|up [--file|-f <string>] [--project-name|-p <string>] [--yes|-y] [--dry-run] [--destroy] # Deploy or upgrade resources based on futrou.json|yaml config
futrou down [--file|-f <string>] [--project-name|-p <string>] [--yes|-y] [--dry-run] # Deprovision every resource in the project and delete the project
futrou login [--workspace <string>] # Log in to Futrou Cloud on this machine
futrou logout # Log out from Futrou Cloud: destroys the token at the API and removes it from this machine
futrou whoami # Display the logged in user (or API key) and workspace (checks that the API token is still valid)
futrou config [--file|-f <string>] [--project-name|-p <string>] # Display the loaded Futrou project configuration as JSON
futrou config init [--file|-f <string>] [--project <string>] # Create a new Futrou project config with the default project name
futrou config pull [--project|-p <string>] [--file|-f <string>] [--force] # Fetch a cloud project and write it as a Futrou project config
futrou config schema # Print the Futrou project config JSON Schema
futrou init [--file|-f <string>] [--name <string>] [--image <string>] # Set up Futrou in this project (config, mcp, skills)
futrou init mcp # Configure Futrou MCP for AI coding agents
futrou init skills # Configure Futrou Skills for AI coding agents
futrou init config [--file|-f <string>] [--name <string>] [--image <string>] # Configure a futrou.json|yaml config file for this project
futrou workspace ls # List all workspaces
futrou workspace show <id> # Show a workspace by ID
futrou workspace update <id> [--name <string>] [--display-name <string>] # Update a workspace
futrou workspace rm <id> # Delete a workspace
futrou workspace limit [--workspace <string>] # Get resource limits for a workspace
futrou workspace contact show [--workspace <string>] # Show the workspace billing contact
futrou workspace contact update [--workspace <string>] [--first-name <string>] [--last-name <string>] [--company <string>] [--email <string>] [--phone <string>] [--street-address <string>] [--city <string>] [--postal-code <string>] [--country <string>] # Update the workspace billing contact
futrou workspace user ls [--workspace <string>] # List users in a workspace
futrou workspace user show <workspace-user-id> [--workspace <string>] # Show a user in a workspace
futrou workspace user add [--workspace <string>] --user-id <string> [--role <string>] # Add a user to a workspace
futrou workspace user update <workspace-user-id> [--workspace <string>] --role <string> # Update a user's role in a workspace
futrou workspace user rm <workspace-user-id> [--workspace <string>] # Remove a user from a workspace
futrou project ls # List all projects
futrou project show <id> # Show a project by ID
futrou project create --name <string> [--display-name <string>] [--workspace <string>] # Create a project
futrou project update <id> [--name <string>] [--display-name <string>] # Update a project
futrou project rm <id> # Delete a project
futrou server ls [--region <string>] # List servers
futrou server show <id> # Show a server by ID
futrou server create --name <string> [--region <string>] [--workspace <string>] # Create a server in the workspace
futrou server update <id> [--name <string>] [--ipv4 <string>] [--ipv6 <string>] [--api-port <string>] # Update a server
futrou server rm <id> # Delete a server
futrou server metrics <id> # Show server metrics
futrou server logs <id> [--type <string>] [--id <string>] [--instance <string>] [LOG-OPTIONS] # View server logs
futrou serverlet ls # List all serverlets
futrou serverlet show <id> # Show a serverlet by ID
futrou serverlet create --name <string> --image <string> --plan <string> [--workspace <string>] [--project <string>] # Create a new serverlet (defaults to futrou.json|yaml, then the login workspace's "default" project)
futrou serverlet update <id> [--name <string>] [--image <string>] [--plan <string>] # Update a serverlet
futrou serverlet rm <id> # Delete a serverlet
futrou serverlet start <id> # Start a serverlet
futrou serverlet stop <id> # Stop a serverlet
futrou serverlet restart <id> # Restart a serverlet
futrou serverlet wake <id> # Wake a sleeping serverlet
futrou serverlet logs <id> [LOG-OPTIONS] # View serverlet logs
futrou serverlet metrics <id> # Show serverlet metrics
futrou serverlet instance <id> # Manage serverlet instances
futrou serverlet instance ls <id> # List serverlet instances
futrou serverlet instance start <id> <instance-id> # Start a serverlet instance
futrou serverlet instance stop <id> <instance-id> # Stop a serverlet instance
futrou serverlet instance restart <id> <instance-id> # Restart a serverlet instance
futrou serverlet instance logs <id> <instance-id> [LOG-OPTIONS] # View logs of a serverlet instance
futrou serverlet instance metrics <id> <instance-id> # Show metrics of a serverlet instance
futrou serverlet shell <id> [--instance <string>] # Open an interactive shell in a serverlet
futrou serverlet exec <id> -- <command> [--instance <string>] # Run a command in a serverlet and wait for it to exit
futrou network ls # List all networks
futrou network show <id> # Show a network by ID
futrou network create --name <string> [--ipv4 <string>] [--ipv6 <string>] [--internal] [--region <string>] [--workspace <string>] [--project <string>] # Create a network (defaults to futrou.json|yaml, then the login workspace's "default" project)
futrou network update <id> [--name <string>] [--ipv4 <string>] [--ipv6 <string>] [--internal] # Update a network
futrou network rm <id> # Delete a network
futrou network devices <id> # List devices attached to a network
futrou network metrics <id> # Show network metrics
futrou proxy ls # List all proxies
futrou proxy show <id> # Show a proxy by ID
futrou proxy create --domain <string> --target <string> [--port <int>] [--type <string>] [--strategy <string>] [--https] # Create a new proxy
futrou proxy update <id> [--domain <string>] [--target <string>] [--port <int>] [--type <string>] [--https] # Update a proxy
futrou proxy rm <id> # Delete a proxy
futrou proxy purge <id> # Purge cached responses for a proxy
futrou proxy metrics <id> # Get metrics for a proxy
futrou proxy logs <id> [LOG-OPTIONS] # View logs for a proxy
futrou proxy logs tail <id> [LOG-OPTIONS] # View recent logs for a proxy
futrou dns ls # List all DNS zones
futrou dns show <id> # Show a DNS zone by ID
futrou dns create --name <string> # Create a DNS zone
futrou dns update <id> [--name <string>] # Update a DNS zone
futrou dns rm <id> # Delete a DNS zone
futrou dns metrics <id> # Get metrics for a DNS zone
futrou dns logs <id> [LOG-OPTIONS] # View logs for a DNS zone
futrou dns logs tail <id> [LOG-OPTIONS] # View recent logs for a DNS zone
futrou dns record ls <zone-id> # List records in a DNS zone
futrou dns record show <zone-id> <record-id> # Show a DNS record
futrou dns record create <zone-id> --name <string> --type <string> --value <string> [--ttl <int>] [--priority <int>] # Create a DNS record
futrou dns record update <zone-id> <record-id> [--name <string>] [--type <string>] [--value <string>] [--ttl <int>] [--priority <int>] # Update a DNS record
futrou dns record rm <zone-id> <record-id> # Delete a DNS record
futrou storage ls [--workspace <string>] [--project <string>] # List storages in a project (defaults to futrou.json|yaml, then the login workspace's "default" project)
futrou storage show <id> # Show a storage by ID
futrou storage create --name <string> --plan <string> [--workspace <string>] [--project <string>] # Create a storage (defaults to futrou.json|yaml, then the login workspace's "default" project)
futrou storage update <id> [--name <string>] [--plan <string>] # Update a storage
futrou storage rm <id> # Delete a storage
futrou storage instance <id> # Manage storage instances
futrou storage instance ls <id> # List storage instances
futrou storage metrics <id> # Get storage metrics
futrou storage logs <id> [LOG-OPTIONS] # View storage logs
futrou storage plan ls # List all storage plans
futrou storage plan show <id> # Show a storage plan by ID
futrou storage file ls <storage-id> [path-or-glob] [--query <string>] # List or search files in a storage; the path may be a glob (e.g. images/*, **/*.log)
futrou storage file info <storage-id> <path> # Inspect file or folder metadata
futrou storage file download <storage-id> <remote-path-or-glob> <local-path> # Download a file, folder, or glob match from a storage
futrou storage file upload <storage-id> <local-path-or-glob> <remote-path> # Upload a file, folder, or glob match to a storage
futrou storage file mkdir <storage-id> <path> # Create a folder in a storage
futrou storage file move <storage-id> <path> <destination> # Move or rename a file or folder in a storage
futrou storage file rm <storage-id> <path-or-glob> [--recursive] # Delete a file, folder, or glob match in a storage
futrou storage sync <storage-id> [remote-path] [local-dir] [--dry-run] # Two-way sync between a local directory and a storage path by modification time
futrou statico ls [--workspace <string>] [--project <string>] # List statico websites (defaults to all you can see; --workspace/--project or futrou.json narrow it)
futrou statico show <name|id> [--workspace <string>] [--project <string>] # Show a statico website by name or ID, with its versions
futrou statico rm <name|id> [--workspace <string>] [--project <string>] # Delete a statico website with all its versions and files
futrou statico deploy|up [name|id] [--workspace <string>] [--project <string>] [--include|-i <string>...] [--exclude|-e <string>...] [--version <string>] [--empty] [--activate=false] [--html-to-folders=false] [--default-file <string>] [--default-status <int>] [--fallback-file <string>] [--fallback-status <int>] [--dry-run] [--region <string>] [--public=false] # Upload files as a new version of a statico website and serve it (the first deploy creates the website; the name defaults to the folder)
futrou statico version [name|id] [--workspace <string>] [--project <string>] # List and serve the versions of a statico website
futrou statico version ls [name|id] [--workspace <string>] [--project <string>] # List all the versions of a statico website, newest first
futrou statico version activate [name|id] [--workspace <string>] [--project <string>] --version <string> # Serve a version of a statico website (an older one is a rollback)
futrou statico download [name|id] [--workspace <string>] [--project <string>] [--version <string>] # Download a version of a statico website (the served one by default) as <name>-<version>.tar.gz
futrou logs <name-or-id> [--type|-t <string>] [--instance <string>] [--ls] [LOG-OPTIONS] # Browse logs of all services
futrou upgrade [version] # Upgrade Futrou CLI to the latest or a specific version
futrou schema [--format <string>] # Display the Futrou API v2 OpenAPI schema
futrou version # Display the Futrou CLI version
futrou license # Display the Futrou CLI licenseInstall the Futrou skill for your AI coding agent (Claude Code, Cursor, Copilot, Codex, and 14+ others):
npx skills add futrou/futrou-cliThe skill teaches your agent how to use the Futrou CLI and REST API — deploying serverlets, managing proxies, DNS, networks, storages, projects, and the MCP server at mcp.futrou.com.
- Go 1.27+
# macOS
brew install go
# Ubuntu/Debian
sudo snap install go --classicGo 1.27 or newer is required (see go.mod). Install it from go.dev/dl if your package manager ships an older version.
git clone git@github.com/futrou/futrou-cli.git
make installRun the dev server (auto-rebuilds on changes):
makemake build # build all platforms (also regenerates the schema and the command reference)
make build-docs # regenerate the command reference in README.md and SKILL.md
make build-npm # build npm-distributable package
make release # build all platforms + npmmake start
make start login
make start serverlet ls
make start ARGS="--help"make test
go test ./src/commands/... -vSteps to release a new version:
- Bump the version in
.envusingmake version bumpor set it manually withmake version set 1.2.0 - Create a new tag in the format
v{version}— e.g.v1.2.0 - Push the tag to GitHub:
git push origin v1.2.0 - The release pipeline will build binaries for all platforms and publish the release
- Done
