Login

Save credentials

beam login [options]

About

The login command will perform a login action and acquire Beamable authorization tokens. There are two main ways Beamable handles authorization, access tokens, and JWTs. JWTs are still being developed. Access tokens are the primary way to handle authorization. Any API request sent to Beamable needs an Authorization header with a bearer token using the Beamable access token. These tokens are short lived and will need to be refreshed periodically. The login command also issues a refresh token which can be used to fetch a new access token if the need arises.

By default, the login command will not save your access tokens. You should pass the --save-to-file option to commit the access token and refresh token to your ./beamable folder.

Options

NameTypeDescription
--emailStringSpecify user email address
--passwordStringUser password
--save-to-environmentBooleanSave login refresh token to environment variable
--no-token-saveBooleanPrevent auth tokens from being saved to disk. This replaces the legacy --save-to-file option
--customer-scopedBooleanMake request customer scoped instead of product only
--refresh-tokenStringRefresh token to use for the requests
--print-to-consoleBooleanPrints out login request response to console
--dryrunBooleanShould any networking happen?
--cidStringCid to use; will default to whatever is in the file system
--pidStringPid to use; will default to whatever is in the file system
--quietBooleanWhen true, skip input waiting and use defaults
--hostStringThe host endpoint for beamable
--refresh-tokenStringRefresh token to use for the requests
--logStringExtra logs gets printed out
--dirStringDirectory to use for configuration
--rawBooleanOutput raw JSON to standard out. This happens by default when the command is being piped
--prettyBooleanOutput syntax highlighted box text. This happens by default when the command is not piped
--dotnet-pathStringa custom location for dotnet
--versionBooleanShow version information
--helpBooleanShow help and usage information