Unlock the vault before you log in.
Check the current state
Check whether the agent already has a session.authenticated is false, log in. Add --probe to test the stored access token against the server. The probe calls GET /v1/users/self.
Log in with the device flow
--client-name. The owner sees this name on the approval page. The default name is InFlow.
The response contains three values.
Poll in the same command
Set a positive--interval to poll until the device flow ends.
Then run
inflow auth status to confirm the login.
Log in with an API key
Pass--api-key, or set INFLOW_API_KEY. The CLI then sends the key as X-API-KEY on every request.
Choose an environment
The CLI usesproduction by default. Select the sandbox in one of three ways.
Tokens stay in the environment that issued them. Log in one time for each environment that you use.
Log out
Troubleshooting
The login never completes
The login never completes
The owner did not approve the login before the deadline. The default deadline is 300 seconds. Run
inflow auth login again. Give the new URL to the owner at once.auth status reports authenticated, but requests fail
auth status reports authenticated, but requests fail
Run
inflow auth status --probe. The probe tests the token against the server. If the probe fails, log in again.The login works in one environment but not in the other
The login works in one environment but not in the other
Tokens do not move between environments. Log in again with
--sandbox, or without it for production.403 SELLER_ACCOUNT_REQUIRED errors, see Errors.
Next step
Discover and enroll
Find a service in the directory and get a credential for it.