From install to a URL
Install dflow, create an account, and open your application in a browser.
This is the short path from a new laptop to an application you can open in a browser. You do not bring a cloud account. dFlow runs the machines. Each step selects the next one, so later commands already know where to go.
Install
The installer checks the download against its SHA-256 checksum, then puts the dflow command in ~/.local/bin/dflow.
curl -fsSL https://github.com/dflow-sh/dflow/releases/latest/download/install.sh | shSee what you installed
Run dflow version to print the build you just installed. Then run dflow upgrade --check. --check compares that build with the latest release and leaves the binary where it is.
Open an account
Run dflow auth:register --email EMAIL. The CLI asks you to type a password at the prompt. The password is 12 to 128 characters. You will see a password must be 12 to 128 characters, then Password: and Re-enter password:.
If the server asks you to accept the beta terms, pass --accept-terms, or type yes when it asks. The text is on the terms page.
dflow login --google or --github can sign you in later, once the server has that provider turned on. The first account on this path is email and password.
Signup creates one personal workspace. A workspace is the boundary around your projects. The personal workspace is private and nobody else can join it. You can still deploy inside it.
Invite someone
Create a second workspace with dflow workspaces:create, then invite them into that one. An invite into the personal workspace is refused with a personal workspace is private.
Choose where the app lives
A project is a named group of applications. An environment is one place inside that project, such as the live site. The application and its database stay on the cluster you pick for that environment.
Create a project with dflow projects:create in the workspace you want to use. If you already know the environment name, pass --environment NAME on that same command. It creates the environment and selects both. --region on that command picks the cluster region, for example eu.
Create an environment with dflow environments:create when you did not pass --environment. Creating the project selects it. Creating the environment selects it. Later commands use that pair.
Write the file, then deploy
dflow.json is the record of the application. Write it in the repository before the first deploy. It names the application, an image or a GitHub repository, the port, and whether the route is public. Env and secret names can live in that file. Do not publish secret values.
Create the application with dflow apps:create. Apply the file with dflow apps:document NAME --file dflow.json --yes. That stores the file and starts the workload it declares. A one-off image with no file is still dflow apps:deploy --image IMAGE, and that command updates the stored copy. Read status from --output json. Stop when status is failed. Ask for a hostname only after the deploy has succeeded.
When the dashboard changes env or secrets, the stored file changes too. Update the copy in the repository so the two stay the same.
Ask for the hostname
Request the platform hostname with dflow apps:route:set and leave --host off. dFlow chooses the hostname. Pass --host only when you already have a domain of your own.
Set the scope yourself
dflow context:use saves a workspace, a project, and an environment when you want later commands to point somewhere else. --project and --environment on any other command apply to that one command. They are not saved.
Read a failure
A text error looks like error: code: message. Pass --output json when a script or an editor needs the result. That JSON includes request_id. Text mode prints a request id only when DFLOW_DEBUG=1.
After the first image
Day-one with dflow covers a build from Git (dflow apps:build with --wait-timeout 20m), PostgreSQL, logs, a workspace token for automation, and how to delete what you created.
Where to read next
How is this guide?
Last updated on