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.
| Flag | Description |
|---|---|
--tag | Tag to assign to the build. Repeat the flag for more than one, for example --tag stable --tag canary. |
--timeout | Longest time to wait for the build to finish, for example 20m. 0 means no limit. |
--no-wait | Return right after the upload without waiting for the build. |
--poll-interval | How often to check the build status. Defaults to 3s. |
--no-progress | Hide 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
| Command | Description |
|---|---|
gameflow builds list --game-id GAME_ID | List the builds of a game. See Pagination. |
gameflow builds status --build-id BUILD_ID | Show the status of a build. |
gameflow builds logs --build-id BUILD_ID | Show 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_ID | Make a build the game's current build. |
gameflow builds rollback --game-id GAME_ID | Make the previous build current again. |
gameflow builds tag --game-id GAME_ID --build-id BUILD_ID --tag stable | Set the tags on a build. This replaces the existing tags. |
gameflow builds delete --game-id GAME_ID --build-id BUILD_ID | Delete 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.