Init

Initialize a new Beamable project in the current directory

beam init [<path>] [options]

About

The init command is used for initializing a .beamable folder. A .beamable folder provides
contextual information to later invocations of the CLI. The folder has Beamable connection strings and
authorization information that can be used later.

This command can also be used to change the CID/PID of an existing .beamable folder.

Arguments

NameTypeDescription
pathStringthe folder that will be initialized as a beamable project. . By default, the init command creates a .beamable folder in the current directory. However, the path argument configures where the .beamable folder is created.

Options

NameTypeDescription
--emailStringSpecify user email address
--passwordStringUser password
--hostStringThis option defines the target Beamable environment. Needed for private cloud customers to target their exclusive Beamable environment. Ignorable by everyone else. Stored in '.beamable/connection-configuration.json'
--refresh-tokenStringA Refresh Token to use for the requests. It overwrites the logged in user stored in connection-auth.json for THIS INVOCATION ONLY
--save-extra-pathsList`1Overwrite the stored extra paths for where to find projects
--paths-to-ignoreList`1Paths to ignore when searching for services
--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
--print-to-consoleBooleanPrints out login request response to console
--dryrunBoolean[DEPRECATED] Run as much of the command as possible without making any network calls
--cidStringCID (CustomerId) to use (found in Portal->Account); defaults to whatever is in '.beamable/connection-configuration.json'
--pidStringPID (Realm ID) to use (found in Portal -> Games -> Any Realm's details); defaults to whatever is in '.beamable/connection-configuration.json'
--quietBooleanWhen true, skip input waiting and use default arguments (or error if no defaults are possible)
--hostStringThis option defines the target Beamable environment. Needed for private cloud customers to target their exclusive Beamable environment. Ignorable by everyone else. Stored in '.beamable/connection-configuration.json'
--access-tokenStringThe access token to use for the requests. It overwrites the logged in user stored in connection-auth.json for THIS INVOCATION ONLY
--refresh-tokenStringA Refresh Token to use for the requests. It overwrites the logged in user stored in connection-auth.json for THIS INVOCATION ONLY
--logStringExtra logs gets printed out
--no-redirectBooleanIf there is a local dotnet tool installation (with a ./config/dotnet-tools.json file) for the beam tool, then any global invocation of the beam tool will automatically redirect and call the local version. However, there will be a performance penalty due to the extra process invocation. This option flag will cause an error to occur instead of automatically redirecting the execution to a new process invocation.
--prefer-remote-federationBooleanBy default, any local CLI invocation that should trigger a Federation of any type will prefer locally running Microservices. However, if you need the CLI to use the remotely running Microservices, use this option to ignore locally running services.
--unmask-logsBooleanBy default, logs will automatically mask tokens. However, when this option is enabled, tokens will be visible in their full text. This is a security risk.
--no-log-fileBooleanBy default, logs are automatically written to a temp file so that they can be used in an error case. However, when this option is enabled, logs are not written. Also, if the BEAM_CLI_NO_FILE_LOG environment variable is set, no log file will be written.
--docker-cli-pathStringa custom location for docker. By default, the CLI will attempt to resolve docker through its usual install locations. You can also use the BEAM_DOCKER_EXE environment variable to specify.
Currently, a docker path has been automatically identified.
--emit-log-streamsBooleanOut all log messages as data payloads in addition to however they are logged
--add-project-pathIEnumerable`1additional file paths to be included when building a local project manifest.
--dirString[DEPRECATED] Path override for the .beamable folder
--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