Skip to Content
dFlow
Path

dflow auth:register

Create an account. You type the password at the prompt.

This creates your account. When the server returns a token, it also signs you in and saves the personal workspace. You type the password at the prompt. It is 12 to 128 characters. There is no --password flag.

dflow auth:register --email EMAIL [--invite CODE] [--accept-terms]

Flags

--email is the address you sign up with. An address the CLI cannot accept prints enter a valid email and does not ask for a password.

--invite CODE is for a server that requires a signup code. A server that does not require one ignores the flag. The code is not printed back. A server that requires a code and does not get a valid one exits 2 with forbidden and an invite code is required. A server that is not accepting signups exits 2 with forbidden and signup is closed.

--accept-terms records that you accepted the terms when the server has a terms version. On a terminal, leaving it off asks Accept the terms VERSION? Type yes:. Without a terminal, a server that requires terms exits 1 with validation and accept the terms.

--password is a usage error. The CLI prints a password must be 12 to 128 characters, then Password: and Re-enter password:. Both are read with echo off, and they must match. A password outside 12 to 128 characters is that same error and does not call the API.

--api is optional. Leaving it off uses the server saved by dflow context:use, or https://k8s.dflow.sh when none is saved.

What you see

When the API returns an access token, the terminal prints the same context, api, and token lines as login, plus org when the response includes workspace_id. That id is the workspace, and it is saved as org.

When the API does not return a token, the terminal prints email and, when the response includes them, delivery of log or smtp and next naming dflow auth:verify TOKEN. log means the verify command was written to the API log. smtp means it was emailed. The password and the verify token are not printed.

When the server channel is beta, stderr prints This service is a beta. The exit code is 0.

How is this guide?

Last updated on

On this page