Skip to main content

Builds

Upload a build​

Upload your game server build:

gameflow builds create --game-id GAME_ID --version v1.0.0 --file server.zip

By default the command waits until the build finishes and exits non-zero if it fails.

FlagDescription
--tagTag to assign to the build. Repeat the flag for more than one, for example --tag stable --tag canary.
--timeoutLongest time to wait for the build to finish, for example 20m. 0 means no limit.
--no-waitReturn right after the upload without waiting for the build.
--poll-intervalHow often to check the build status. Defaults to 3s.
--no-progressHide the upload progress bar. The bar is also hidden when output is not a terminal or CI is set.

To upload from a pipeline, see Deploy from CI.

Manage builds​

CommandDescription
gameflow builds list --game-id GAME_IDList the builds of a game. See Pagination.
gameflow builds status --build-id BUILD_IDShow the status of a build.
gameflow builds logs --build-id BUILD_IDShow a build's steps and log lines. The step with error: true is where it failed.
gameflow builds promote --game-id GAME_ID --build-id BUILD_IDMake a build the game's current build.
gameflow builds rollback --game-id GAME_IDMake the previous build current again.
gameflow builds tag --game-id GAME_ID --build-id BUILD_ID --tag stableSet the tags on a build. This replaces the existing tags.
gameflow builds delete --game-id GAME_ID --build-id BUILD_IDDelete a build. The current build can't be deleted.

builds status and builds logs take only --build-id. The other build commands also need --game-id.

When a build fails​

builds create exits with code 6 and still prints the result, including the buildId. Pass it to builds logs to see why:

gameflow builds logs --build-id BUILD_ID

The step with error: true is where it failed.