Skip to main content

Snapser CLI Tool

Project description

Snapser CLI

Snapser has developed a CLI tool called snapctl that can be used on MaxOSX, Linux and Windows machines. Snapctl will be the best way for game studios to integrate Snapser into their build pipelines.

Requirements

Python 3.X and Pip

The Snapser CLI tool depends on Python 3.X and Pip. MacOS comes pre installed with Python. But please make sure you are running Python 3.X. On Windows, you can download Python 3.X from the Windows store.

Docker

Some of the commands also need docker. You can download the latest version of Docker from the Docker website.

IMPORTANT: Open up Docker desktop and settings. Make sure this setting is disabled Use containerd for pulling and storing images. This is because Snapser uses Docker to build and push images to the Snapser registry. Having this setting enabled will cause issues with the Snapser CLI tool.

# Run this on your machine to confirm the setting has been disabled and confirm the output is `overlay2`
$ docker info --format "{{.Driver}}"
overlay2

Installation

Pip

Installing PIP on MacOS

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py

Installing PIP on Windows

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py

Pipx

Now a days, pipx is recommended for CLI tools. Once you have Python and Pip installed, lets install Pipx.

python3 -m pip install --user pipx
python3 -m pipx ensurepath

Install Snapctl

  • If you chose to use Pip
pip install --user snapctl

If you also have Python 2.X on your machine, you may have to run the following command instead

pip3 install --user snapctl
  • If using, Pipx
pipx install snapctl

IMPORTANT: After you install snapctl you may have to add the python bin folder to your path. For example, on MacOSX this is usually ~/Library/Python/3.9/bin. On Windows this is usually C:\Users\username\AppData\Roaming\Python\Python39\Scripts. For, Windows users, after running pipx ensurepath, you may need to restart your terminal (Command Prompt, PowerShell, or Windows Terminal) for the PATH changes to take effect.

Upgrade

Upgrade your snapctl version

  • If using Pip
pip3 install --user snapctl --upgrade
  • If using Pipx
pipx upgrade snapctl

Setup

Get your Snapser Access Key

Log in to your Snapser account. Click on your user icon on the top right and select, User Account. In the left navigation click on Developer which will bring up your Personal API Key widget. If you have not generated an API Key yet click on the Generate button to generate a new key. You can generate up to 3 API Keys per user account.

IMPORTANT: Please make sure you save your API key in a safe place. You will not be able to see it again.

Setup a local config

You have three ways to pass the API key to Snapctl

  1. Pass it via a command line argument with every command
  2. Pass it via an environment variable
  3. Pass it via a config file (recommended)

Command line argument

Every Snapser command can take a command line argument --api-key <your_key>. This will take precedence over other methods.

Environment Variable

You can set an Environment variable SNAPSER_API_KEY=<your_key> and then run your snapctl commands. This will be evaluated after verifying if there is any command line argument.

Config file

Create a file named ~/.snapser/config. Open it using the editor of your choice and replace with your personal Snapser Access key. Save the file. Advantage of using this method is you can use the --profile argument with your snapctl command to use different API keys. NOTE: You may want to pass your own path instead on relying on the default one the CLI looks for. You can do so by setting an environment variable SNAPSER_CONFIG_PATH='<your_custom_path>'. Doing this will make sure that the CLI tool will look for the config file at that path.

[default]
SNAPSER_API_KEY=$your_api_key

Or you can run the following command

on MacOSX

# $your_api_key = Your Snapser developer key
echo -e "[default]\nSNAPSER_API_KEY=$your_api_key" > ~/.snapser/config

on Windows Powershell

# $your_api_key = Your Snapser developer key
echo "[default]
SNAPSER_API_KEY=$your_api_key" | Out-File -encoding utf8 ~\.snapser\config
**Enterprise customers**: You need to add an additional entry to their config file PORTAL_ENDPOINT= ``` [default] SNAPSER_API_KEY=$your_api_key PORTAL_ENDPOINT=$your_portal_endpoint ```

Verify Snapctl installation

snapctl validate

Output will tell you if the Snapctl was able successfully validate your setup with the remote Snapser server or not.

Advanced Setup

Snapser by default supports access to multiple accounts. You can create multiple profiles in your Snapser config ~/.snapser/config.

[profile personal]
nSNAPSER_API_KEY=<key>

[profile professional]
nSNAPSER_API_KEY=<key>

You can then set an environment variable telling Snapser which profile you want to use.

# Mac
export SNAPSER_PROFILE="my_profile_name";

# Windows
setx SNAPSER_PROFILE="my_profile_name";

Or you can pass --profile professional with every command to tell Snapser to use a particular profile.

Command variable name nomenclature

All commands follow these rules with their input variables

  1. A variable that is named *path = CLI tool expects a path to a folder
  2. A variable that is named *filename = CLI tool expects the name of the file, without the path.
  3. A variable that is named *path_filename = CLI tool expects the full path. The folder up to the name of the file.

Commands

Run the following to see the list of commands Snapser supports

snapctl --help

1. Snaps

Snapctl commands for snaps

1. snaps help

See all the supported commands.

# Help for the byosnap command
snapctl snaps --help

2. snaps enumerate

See all the supported commands.

# Enumerate details for all the available snaps
# $output_path = Optional path and filename ending in JSON, where you want snapctl to save snap details
snapctl snaps enumerate --out-path-filename

2. BYO Snap - Bring your own Snap

Snapctl commands for your custom code

1. byosnap help

See all the supported commands.

# Help for the byosnap command
snapctl byosnap --help

2. byosnap generate-profile

This command generates a base BYOSnap profile. You will have to update the values within this file and then you can use it in commands like publish and sync. It is recommended that you save this file at the root of your BYOSnap code and commit it to version control.

The generated profile now includes an optional `hpa` field under `prod_template` for configuring autoscaling on the production deployment. It is `null` by default — uncomment / fill it in to enable autoscaling. `hpa` is production only; the validator rejects it on Dev and Stage templates. See the [Profile Tool](/docs/custom/tools/profile-tool) doc for the field reference.
# Help for the byosnap command
snapctl byosnap generate-profile --help

# Generate your BYOSnap profile
# $output_path = Directory where you want the BYOSnap profile to be saved.
# $profile_filename = Name of the BYOSnap profile you want to give. Only .json, .yaml, .yml extensions
#   are allowed. If you do not pass `--profile-filename` then Snapser choses
#   `snapser-byosnap-profile.json` as the filename.
snapctl byosnap generate-profile --out-path $output_path --profile-filename $profile_filename
snapctl byosnap generate-profile --out-path /Users/DevName/Development/SnapserEngine/byosnap-python --profile-filename=my-byosnap-profile.json
snapctl byosnap generate-profile --out-path /Users/DevName/Development/SnapserEngine/byosnap-python --profile-filename=my-byosnap-profile.yaml
BYOSnap profile: secrets field

Each of dev_template, stage_template, and prod_template accepts an optional secrets array of SecretRef objects. Each SecretRef references a specific tagged version of a secret created via snapctl secret create, and the referenced (file_name, tag) pair is mounted into the running snap at that environment. The deployment diff is computed on (file_name, tag) — changing either field is a meaningful diff that triggers a redeploy.

A SecretRef has two fields:

  • file_name — the file_name (primary key) of the secret. Must match ^[-._a-zA-Z0-9]+$ (1–253 characters).
  • tag — the tag you chose when creating that version of the secret. Same character set and length rules as file_name.

Rules:

  • secrets is optional and may be an empty list. Profiles authored before this feature was added (no secrets key) continue to validate.
  • Maximum of 5 SecretRef entries per template.
  • No duplicate file_name entries within a single template, even at different tags — listing the same file_name twice would collide at the mount point.
  • Unknown extra keys on a SecretRef are rejected to catch typos. In particular, the old version: key (used in an earlier iteration of this feature) is now rejected — replace it with tag:.

Example (YAML):

dev_template:
  # ... cpu, memory, etc ...
  secrets:
    - file_name: my-api-key
      tag: prod
    - file_name: db.password
      tag: v1.0

Example (JSON):

"dev_template": {
  "secrets": [
    {"file_name": "my-api-key", "tag": "prod"},
    {"file_name": "db.password", "tag": "v1.0"}
  ]
}

3. byosnap validate-profile

This command validates your BYOSnap profile. In addition to the per-field checks (CPU/Memory marks, ingress ports, readiness probe shape, etc.), the validator enforces the HPA cross-field rules when prod_template.hpa is set: min_replicasmax_replicas, thresholds in (0, 100], stabilization windows in [0, 3600], periods in [0, 300], and exactly one of percent or pods on each scale behavior (with scale_down.percent strictly less than 100). HPA on Dev or Stage templates is rejected outright.

# Help for the byosnap command
snapctl byosnap validate-profile --help

# Validate your BYOSnap profile
# $path = Directory Path to where your BYOSnap Profile is located. No need to add the file name.
# $resources_path = Optionally, you can place your BYOSnap profile at your resources path
# $profile_filename = Optional parameter. Name of your BYOSnap profile.
#   If you do not pass `--profile-filename` then
#   Snapser choses the default `snapser-byosnap-profile.json` as the filename to validate
snapctl byosnap validate-profile --path $path
snapctl byosnap validate-profile --resources-path $resources_path --profile-filename $profile_filename
snapctl byosnap validate-profile --path /Users/DevName/Development/SnapserEngine/byosnap-python
snapctl byosnap validate-profile --path /Users/DevName/Development/SnapserEngine/byosnap-python --profile-filename my-byosnap-profile.yaml

4. byosnap publish

This command allows you to create and publish your BYOSnap. Running this command will first create a BYOSnap namespace on Snapser if not present. Then it will build and publish your code to your own private ECR repo on Snapser. Finally it will assign a version to your BYOSnap so that you can deploy it.

Requirements:

  • This command needs docker.
  • This command needs a BYOSnap profile. BYOSnap profile, holds information about your BYOSnap like, name, description, etc and hardware requirements like CPU, Memory. We recommend you store this file at the root of your BYOSnap and also add it to version control. You can generate it using snapctl byosnap generate-profile --out-path $outputPath --profile-filename $profileName.

Version rule: --version must be strictly greater than the highest version you have already published. For example, if your latest published version is v1.0.1, you can publish v1.0.2, v1.1.0, v2.0.0, etc., but not v1.0.1 or lower. publish checks this up front and fails fast (before building or pushing any image) if the version is not greater. For a brand-new BYOSnap with no versions yet, any valid vX.Y.Z is allowed. Use snapctl byosnap next-version --byosnap-id $byosnap_id to see your next patch/minor/major options.

# Help for the byosnap command
snapctl byosnap publish --help

# Create and publish your BYOSnap
# $byosnap_id = Snap ID for your snap
# $version = Semantic version for your snap Eg: v0.0.1
# $code_root_path = Local code path where your Dockerfile is present
# $resources_path = Optional path to the resources directory in your Snap. This ensures, you are not forced to put the Dockerfile, snapser-byosnap-profile.json, swagger.json and README.md at the root directory of your Snap.
# $profile_filename = Optional parameter. Name of your BYOSnap profile.
#   If you do not pass `--profile-filename` then
#   Snapser choses the default `snapser-byosnap-profile.json` as the filename to validate
# $skip-build = true/false. Default is false. Pass this flag as true to skip the build and head straight to tag and push. Build step needs to run and tag using the --tag you pass to the publish-image command for this to work. Make sure the tag matches the version number you are passing.
# Example:
snapctl byosnap publish --byosnap-id byosnap-jinks-flask --version "v0.0.1" --path /Users/DevName/Development/SnapserEngine/byosnap-python --profile-filename $profile_filename
snapctl byosnap publish --byosnap-id $byosnap_id --version $version --path $code_root_path
byosnap publish --byosnap-id byosnap-python --version "v1.0.0" --path /Users/AJ/Development/byosnap-python --profile-filename my-byosnap-profile.yaml

5. byosnap sync

This command is for development purposes. It allows developers to rapidly build, update and push their BYOSnap to a dev Snapend. Simply, make changes to your code locally, and then run this command to deploy your BYOSnap straight to your development Snapend.

Requirements:

  • This command needs docker.

IMPORTANT: sync only updates an already-published version. The --version you pass must already exist (created by a prior snapctl byosnap publish). sync does not create new versions. If the version does not exist, sync fails fast (before building or pushing any image). For a brand new BYOSnap or a brand new version, use snapctl byosnap publish followed by snapctl snapend update, or use snapctl byosnap direct-deploy (the recommended path for development deploys — see below).

IMPORTANT: This command will only work for Dev Snapends. Additionally if the version you are using in this command happens to be used by a staging or a production snapend then sync will not work. We do this to ensure that your staging and production BYOSnap images do not get impacted.

# Help for the byosnap command
snapctl byosnap sync --help

# Deploy local code straight to your Snapend
# $byosnap_id = Snap ID for your snap
# $code_root_path = Local code path where your Dockerfile is present
# $resources_path = Optional path to the resources directory in your Snap. This ensures, you are not forced to put the Dockerfile, swagger.json and README.md in the root directory of your Snap.
# $skip-build = true/false. Default is false. Pass this flag as true to skip the build and head straight to tag and push. Build step needs to run and tagged using the --tag you pass to the publish-image command for this to work.
# $tag = Semantic version for your snap Eg: v0.0.1
# $version =
# $snapend_id = Dev Snapend Id
# Example:
snapctl byosnap sync --byosnap-id byosnap-jinks-flask --path /Users/DevName/Development/SnapserEngine/byosnap-python --version "v0.0.11" --snapend-id "jxmmfryo"
snapctl byosnap sync --byosnap-id $byosnap_id --path $code_root_path --version $version --snapend-id $snapend_id

6. byosnap create

Create a custom snap. Note that you will have to build, push and publish your snap image, for it to be useable in a Snapend.

Most workflows can skip `byosnap create` entirely — `snapctl byosnap publish` (above) will create the BYOSnap from your profile if it doesn't exist yet and then publish a new version in one shot. Reach for `byosnap create` only when you want to register a BYOSnap without publishing an image alongside it.
# Help for the byosnap command
snapctl byosnap create --help

# Create a new snap
# $byosnap_id = Snap ID for your snap. Start start with `byosnap-`
# $name = User friendly name for your BYOSnap
# $desc = User friendly description
# $platform = One of linux/arm64, linux/amd64
# $language = One of go, python, ruby, c#, c++, rust, java, node

# Example:
# snapctl byosnap create --byosnap-id byosnap-jinks-flask --name "Jinks Flask Microservice" --desc "Custom Microservice" --platform "linux/arm64" --language "go"
snapctl byosnap create --byosnap-id $byosnap_id --name "$name" --desc "$desc" --platform "$platform" --language "$language"

7. byosnap build

Build your snap image

# Help for the byosnap command
snapctl byosnap build --help

# Publish a new image
# $byosnap_id = Snap ID for your snap
# $image_tag = An image tag for your snap
# $code_root_path = Local code path where your Dockerfile is present
# $resources_path = Optional path to the resources directory in your Snap. This ensures, you are not forced to put the Dockerfile, swagger.json and README.md in the root directory of your Snap.
# Example:
# snapctl byosnap build --byosnap-id byosnap-jinks-flask --tag my-first-image --path /Users/DevName/Development/SnapserEngine/byosnap-python
snapctl byosnap build --byosnap-id $byosnap_id --tag $image_tag --path $code_root_path
snapctl byosnap build --byosnap-id $byosnap_id --tag $image_tag --path $code_root_path --resources-path $resources_path

8. byosnap push

Push your snap image to Snapser

# Help for the byosnap command
snapctl byosnap push --help

# Publish a new image
# $byosnap_id = Snap ID for your snap
# $image_tag = An image tag for your snap
# Example:
# snapctl byosnap push --byosnap-id byosnap-jinks-flask --tag my-first-image
snapctl byosnap push --byosnap-id $byosnap_id --tag $image_tag

9. byosnap upload-docs

Upload swagger.json and README.md for you Snap

# Help for the byosnap command
snapctl byosnap upload-docs --help

# Publish a new image
# $byosnap_id = Snap ID for your snap
# $image_tag = An image tag for your snap
# $resources_path = Path to your swagger.json and README.md files
# Example:
# snapctl byosnap upload-docs --byosnap-id byosnap-jinks-flask --tag my-first-image --resources-path /Users/DevName/Development/SnapserEngine/byosnap-python
snapctl byosnap upload-docs --byosnap-id $byosnap_id --tag $image_tag --resources-path $resources_path

10. byosnap publish-image

Publish a custom snap code image. This command executes, build, push and upload-docs one after the other.

IMPORTANT: Take note of the hardware architecture of machine and your Dockerfile commands. Commands in docker file may be hardware architecture specific. Snapser throws a warning if it detects a mismatch.

# Help for the byosnap command
snapctl byosnap publish-image --help

# Publish a new image
# $byosnap_id = Snap ID for your snap
# $image_tag = An image tag for your snap
# $code_root_path = Local code path where your Dockerfile is present
# $resources_path = Optional path to the resources directory in your Snap. This ensures, you are not forced to put the Dockerfile, swagger.json and README.md in the root directory of your Snap.
# $skip-build = true/false. Default is false. Pass this flag as true to skip the build and head straight to tag and push. Build step needs to run and tagged using the --tag you pass to the publish-image command for this to work.
# Example:
# snapctl byosnap publish-image --byosnap-id byosnap-jinks-flask --tag my-first-image --path /Users/DevName/Development/SnapserEngine/byosnap-python
snapctl byosnap publish-image --byosnap-id $byosnap_id --tag $image_tag --path $code_root_path
snapctl byosnap publish-image --byosnap-id $byosnap_id --tag $image_tag --path $code_root_path --resources-path $resources_path
snapctl byosnap publish-image --byosnap-id $byosnap_id --tag $image_tag --skip-build

11. byosnap publish-version

Publish a new version for your Snap. Only after your Snap version is published, you will be able to use your snap in your Snapend. This command should be run after push or publish-image commands.

IMPORTANT: You need to have $byosnapProfile to run this command. BYOSnap profile is a JSON configuration of your BYOSnap for the development, staging and production environments. You can generate a base version of this file using the snapctl byosnap generate-profile --out-path $outputPath --profile-filename $profileName command.

# Help for the byosnap command
snapctl byosnap publish-version --help

# Publish a new image
# $byosnap_id = Snap ID for your snap
# $image_tag = An image tag for your snap
# $version = Semantic version for your snap Eg: v0.0.1
# $byosnap_profile_path = Path to the snapser-byosnap-profile.json BYOSnap profile to configure dev, stage and prod settings for this snap. You can generate a base version of this file using the `snapctl byosnap generate-profile --out-path $outputPath --profile-filename $profileName` command
# Example:
# snapctl byosnap publish-version --byosnap-id byosnap-jinks-flask --tag my-first-image --version v0.0.1 --path /Users/DevName/Development/SnapserEngine/byosnap-python
snapctl byosnap publish-version --byosnap-id $byosnap_id --tag $image_tag --version $version --path $byosnap_profile_path

12. byosnap direct-deploy

Direct deploy your BYOSnap to a Snapend, without having to publish it. With this new command, there is no need for you to publish your byosnap and or sync it before using. Any dev can now just directly deploy their byosnap to a snapend and then use byows to attach and start debugging locally. Once you are happy with your BYOSnap you can then publish it for others to use

# Help for the byosnap command
snapctl byosnap direct-deploy --help

# Direct deploy a new image
# $byosnap_id = Snap ID for your snap
# $snapend_id = Snapend Id
# $code_root_path = Local code path where your Dockerfile is present
# $resources_path = (Optional) path to the resources directory in your Snap. This ensures, you are not forced to put the Dockerfile, swagger.json and README.md in the root directory of your Snap.
# $platform = (Optional) One of linux/arm64, linux/amd64. In case you want to override the platform
# Example:
# snapctl byosnap direct-deploy --byosnap-id byosnap-jinks-flask --snapend-id jxmmfryo --path /Users/DevName/Development/SnapserEngine/byosnap-python
snapctl byosnap direct-deploy --byosnap-id $byosnap_id --snapend-id $snapend_id --path $code_root_path

13. byosnap next-version

A read-only helper that tells you the next versions you can publish for a BYOSnap, based on its highest already-published version. Handy because publish requires a version strictly greater than the latest one. It prints the next patch, minor, and major options. For a BYOSnap that has nothing published yet, it suggests a valid starting version.

# Help for the byosnap command
snapctl byosnap next-version --help

# Show the next publishable versions
# $byosnap_id = Snap ID for your snap
# Example: if the latest published version is v1.0.1, this prints
#   patch -> v1.0.2 | minor -> v1.1.0 | major -> v2.0.0
snapctl byosnap next-version --byosnap-id $byosnap_id

3. BYO Workstation - Bring your own Workstation

Snapctl commands for bring your own workstation. This command allows you to attach your workstation to a Snapend. This is useful for testing and debugging your BYOSnap code.

1. byows help

See all the supported commands

# Help for the byows command
snapctl byows --help

2. byows attach

Attach your workstation to a Snapend. It should be noted, that this command outputs a file byows_env_setup.sh|ps1 at ~/.snapser/ directory. This file contains the environment variables that the BYOWS technology will need to route internal calls to the appropriate Snaps.

# Attach your workstation to a Snapend
# $snapend_id = Snapend Id
# $byosnap_id = BYOSnap Id
# $http_port = Port that your local server is running on
snapctl byows attach --snapend-id $snapend_id --byosnap-id $byosnap_id --http-port $http_port

Then run, the following command in a separate terminal window, to setup the BYOWS environment variables.

# MacOSX
source ~/.snapser/byows_env_setup.sh
# Windows
.\.snapser\byows_env_setup.ps1

Then start your BYOSnap local server in the same tab that has the environment variables set up. This will ensure that the BYOSnap code can access the internal SDK and other Snaps in your Snapend.

3. byows detach

Detach your workstation from a Snapend. This stops forwarding traffic to your local machine for the specified BYOSnap.

# Detach your workstation from a Snapend
# $snapend_id = Snapend Id
# $byosnap_id = BYOSnap Id
snapctl byows detach --snapend-id $snapend_id --byosnap-id $byosnap_id

4. BYO Game Server - Bring your own Game Server

Snapctl commands for your custom game server

1. byogs help

See all the supported commands

# Help for the byogs command
snapctl byogs --help

2. byogs publish

Publish your custom game server image. This commend replaces the old way of creating, publishing image and then publishing the byogs. Now all you have to do is publish your image and create a fleet using the web portal.

IMPORTANT: Take note of the hardware architecture of machine and your Dockerfile commands. Commands in docker file may be hardware architecture specific. Snapser throws a warning if it detects a mismatch.

# Help for the byogs command
snapctl byogs publish --help

# Publish a new image
# $image_tag = An image tag for your snap
# $code_root_path = Local code path where your Dockerfile is present
# $resources_path = Optional path to the resources directory. This ensures, you are not forced to put the Dockerfile at the root directory of your Game Server code.
# $skip-build = Default is false. Pass this flag as true to skip the build and head straight to tag and push. Build step needs to run and tagged using the --tag you pass to the publish-image command for this to work.
# Example:
# snapctl byogs publish --tag my-first-image --path /Users/DevName/Development/SnapserEngine/game_server
snapctl byogs publish --tag $image_tag --path $code_root_path
snapctl byogs publish --tag $image_tag --path $code_root_path --resources-path $resources_path
snapctl byogs publish --tag $image_tag --skip-build

3. byogs sync

This command allows developers to rapidly build, update and push their BYOGs out to a Snapend fleet. Simply, make changes to your code locally, and then run this command to deploy your BYOGs straight to your Snapend fleet.

# Help for the byogs command
snapctl byogs sync --help

# Publish a new image
# $code_root_path = Local code path where your Dockerfile is present
# $resources_path = Optional path to the resources directory in your Snap. This ensures, you are not forced to put the Dockerfile, swagger.json and README.md in the root directory of your Snap.
# $skip-build = true/false. Default is false. Pass this flag as true to skip the build and head straight to tag and push. Build step needs to run and tagged using the --tag you pass to the publish-image command for this to work.
# $image_tag = An image tag for your snap. Note snapctl adds a timestamp, allowing you to use the same command.
# $snapend_id = Snapend Id
# $fleet_names = Comma separated fleet names
# Example:
snapctl byogs sync --path /Users/DevName/Development/SnapserEngine/game_server --tag my-first-image --snapend-id "jxmmfryo" --fleet-names "my-fleet,my-second-fleet"
snapctl byogs sync --path $code_root_path --tag $image_tag --snapend-id $snapend_id --fleet-names $fleet_names

4. byogs build

Build your custom game server image.

# Help for the byogs command
snapctl byogs build --help

# Publish a new image
# $image_tag = An image tag for your snap
# $code_root_path = Local code path where your Dockerfile is present
# Example:
# snapctl byogs build byosnap-jinks-gs --tag my-first-image --path /Users/DevName/Development/SnapserEngine/game_server
snapctl byogs build --tag $image_tag --path $code_root_path

5. byogs push

Push your custom game server image.

# Help for the byogs command
snapctl byogs push --help

# Publish a new image
# $image_tag = An image tag for your snap
# Example:
# snapctl byogs push byosnap-jinks-gs --tag my-first-image
snapctl byogs push --tag $image_tag

5. Application

Snapctl commands for your application

1. application help

See all the supported commands

# Help for the byogs command
snapctl application --help

2. application create

Create an application

snapctl application create --name $app_name

3. application enumerate

List all the applications

snapctl application enumerate

6. Secret

Snapctl commands for managing application-scoped secrets. Secrets are append-only and tag-keyed: every create writes a new (file_name, tag) pair, values are stored encrypted at rest, and values are returned redacted (********) on every operation except reveal. The file_name is the secret's primary key; tag is a user-chosen identifier for a specific version of a secret. Both follow the regex ^[-._a-zA-Z0-9]+$ (1–253 chars). Secret values are limited to 65536 bytes.

There is intentionally no update operation. To rotate a secret value, call create again with a new tag. Older tags remain available until you explicitly delete them.

Model

  • create writes a new (file_name, tag) entry. Duplicate (file_name, tag) pairs are rejected by the backend.
  • enumerate returns a rollup per secret (file_name, list of tags, timestamps).
  • get returns the full tag history for a single secret, including which clusters/byosnaps reference each tag.
  • reveal is tag-scoped: it requires --tag and returns the plaintext for that one (file_name, tag).
  • delete works at two granularities: without --tag it deletes the entire secret (every tag); with --tag it deletes only that one tag.

For every secret subcommand you must pass --application-id, or set the SNAPSER_APPLICATION_ID environment variable / Snapser config key (same fallback as snapctl snapend).

1. secret help

See all the supported commands

# Help for the secret command
snapctl secret --help

2. secret enumerate

List all secrets for an application. Returns a rollup per secret: file_name, tags[], created_at (oldest tag), last_updated_at (newest tag). Sort by last_updated_at if you want a "newest first" view. Values are not included — call get for the per-tag view.

# $application_id = Application Id (or set via SNAPSER_APPLICATION_ID).
snapctl secret enumerate --application-id $application_id

3. secret get

Get the full tag history for a single secret. The response is {file_name, tags: [...]} where each tag carries tag, value (redacted), created_at, updated_at, and usage[] (the clusters and byosnaps that reference that specific tag).

# $file_name = Secret file name (the secret's primary key).
snapctl secret get --application-id $application_id --file-name $file_name

4. secret create

Create a new (file_name, tag) entry. --tag is required and is a user-chosen identifier for this version of the secret. Pass exactly one of --value (inline) or --from-file (path to a file whose contents will be used as the value).

To "rotate" a secret, call create again with a new tag — there is no separate update operation.

# Inline value with a tag:
snapctl secret create --application-id $application_id --file-name $file_name --tag $tag --value $value

# Value sourced from a file (handy for multi-line values or large keys):
snapctl secret create --application-id $application_id --file-name $file_name --tag $tag --from-file ./my-secret.txt

# Rotate by creating a new tag for the same file_name:
snapctl secret create --application-id $application_id --file-name my-api-key --tag prod-2026-06 --value $new_value

5. secret delete

Delete a secret. Fails if the targeted secret/tag is referenced by a cluster manifest.

# Delete the entire secret (every tag):
snapctl secret delete --application-id $application_id --file-name $file_name

# Delete only one tag:
snapctl secret delete --application-id $application_id --file-name $file_name --tag $tag

6. secret reveal

Reveal the plaintext value of a specific tag of a secret. --tag is required.

Without --out-path, the plaintext is printed on stdout (use with caution; the value lands in your shell history).

When --out-path is set to an existing directory, the plaintext is written to <out-path>/<file_name>.<tag> instead and the plaintext is not echoed on stdout. Revealing multiple tags of the same secret into the same directory produces separate files (the tag suffix prevents overwrites). On POSIX systems the written file is chmod'd to 0600 (owner read/write only).

# Print plaintext on stdout
snapctl secret reveal --application-id $application_id --file-name $file_name --tag $tag

# Write plaintext to ./secrets/$file_name.$tag and keep it off stdout
# $out_path = An existing directory; the file is written as <out-path>/<file_name>.<tag>.
snapctl secret reveal --application-id $application_id --file-name $file_name --tag $tag --out-path $out_path

Note: --tag is strictly rejected on enumerate and get — this catches typos like snapctl secret get --tag prod --file-name foo when you actually meant reveal.

7. Snapend Manifest

Snapctl commands for the Snapend manifest. Manifest is the representation of your Snapser backend stored as a JSON or YAML. The manifest can then be used to create, update your backend.

1. snapend-manifest help

See all the supported commands

# Help for the byogs command
snapctl snapend-manifest --help

2. Snapend Manifest Create

Create a Snapend manifest. It should be noted that the latest versions of the snap at the time of running the command is what gets added to the manifest. For example, say the analytics snap has versions v1.0.0, v1.1.0 available on the web portal. If you run the create command with --snaps analytics the v1.1.0 which is the latest at that moment in time, gets added to your manifest.

The output manifest file can then be used with the snapend create or snapend clone commands.

# Create a Snapend manifest file
# $name = Name for your backend, which is stored in the outputted manifest
# $env = One of DEVELOPMENT, STAGING or PRODUCTION
# $output_path_filename = Path and file name to store the manifest. The filename should end with .json or .yaml
# $snaps = Comma separated list of snap ids you want to add.  You can get the snap ids from the
#     `snapctl snaps enumerate --out-path-filename ./snaps.json` command
# $features = Pass `WEB_SOCKETS` if you want to enable web sockets for your backend.
# Note: One of snaps or features is required
# Example:
#   snapend-manifest create --name my-dev-snapend --env DEVELOPMENT --snaps auth,analytics --add-features WEB_SOCKETS --out-path-filename ./snapend-manifest.json

snapctl snapend-manifest create --name $name --env $env --snaps $snaps --features $features --out-path-filename $output_path_filename

3. Snapend Manifest Sync

Sync with an existing Snapend manifest. This command is idempotent and destructive.

  • It ensures the input manifest gets replaced with the values you pass in --snaps and --features. For example: If your input manifest has a snap but you do not pass the snap in the --snaps, it will be removed from the output. Same goes for --features.
  • Additionally, if a snap is present in the manifest and you pass it in as part of --snaps it will not be touched. But if a snap is not part of the manifest and you pass it in as part of --snaps it will be added with the latest version of the snap. For example, say the analytics snap has versions v1.0.0, v1.1.0 available on the web portal. If you run the sync command with --snaps analytics and you had v1.0.0 in the manifest then it wont be touched. However, if you did not have it in the manifest then the v1.1.0 which is the latest at that moment in time, gets added to your manifest.

IMPORTANT: If you are looking for a command to purely add or remove snaps or features, consider using the update command instead.

# Sync a Snapend manifest file
# $input_manifest = Path and file name of the current manifest. The filename should end with .json or .yaml
# $output_path_filename = Path and file name to store the manifest. The filename should end with .json or .yaml
# $snaps = Comma separated list of snap ids you want to have at the end. You can get the snap ids from # the `snapctl snaps enumerate --out-path-filename ./snaps.json` command.
#   IMPORTANT: If your manifest has a snap but your --snaps does not. It will be removed.
# $features = Pass `WEB_SOCKETS` if you want to enable web sockets for your backend.
#   IMPORTANT: If your manifest has a feature but your --features does not. It will be removed.
# Note: One of snaps, and features is required
# Example:
#   snapctl snapend-manifest sync --manifest-path-filename ./snapser-jn86b0dv-manifest.yaml --add-snaps game-server-fleets --remove-snaps analytics --remove-features WEB_SOCKETS --out-path-filename ./snapend-updated-manifest.yaml

snapctl snapend-manifest sync --manifest-path-filename $input_manifest --snaps $snaps --features $features--out-path-filename $output_path_filename

4. Snapend Manifest Upgrade

Upgrade all snaps or a list of snaps to the latest version of the snap available at that moment in time. If you do not pass in --snaps then all the snaps in the manifest will be upgraded. If you do pass a list of snaps then all snap Ids are expected to be valid.

# Update a Snapend manifest file
# $input_manifest = Path and file name of the current manifest. The filename should end with .json or .yaml
# $output_path_filename = Path and file name to store the manifest. The filename should end with .json or .yaml
# $snaps = (Optional) Comma separated list of snap ids you want to upgrade. You can get the snap ids
#   from the `snapctl snaps enumerate --out-path-filename ./snaps.json` command
#   IMPORTANT: If the --snaps parameter is not provided then all snaps in the manifest will be upgraded
# Example:
# snapctl snapend-manifest upgrade --manifest-path-filename ./snapser-jn86b0dv-manifest.yaml --snaps game-server-fleets --out-path-filename ./snapend-updated-manifest.yaml
# snapctl snapend-manifest upgrade --manifest-path-filename ./snapser-jn86b0dv-manifest.yaml --out-path-filename ./snapend-updated-manifest.yaml

snapctl snapend-manifest upgrade --manifest-path-filename $input_manifest --out-path-filename $output_path_filename

snapctl snapend-manifest upgrade --manifest-path-filename $input_manifest --snaps $snaps --out-path-filename $output_path_filename

5. Snapend Manifest Update

Update your manifest. This command is additive and subtractive. It allows you to add or remove, snaps and features from an existing manifest. Unlike sync, this will only add or remove entities from your manifest, keeping the remaining part of the manifest intact. If your manifest has a snap and you pass it with --add-snaps then it will be ignored. However if you do not have a snap and you pass it with --add-snaps then the latest version of the snap will be added. If you pass a snap with --remove-snaps that is already not in the manifest, then it will be skipped. This ensures idempotency after the initial update is made to the snapend manifest.

IMPORTANT:

  • All additions are performed before removals.
  • If you are looking to have strict relation between your input (snaps + features) and your output manifest, consider using the sync command.
# Update a Snapend manifest file
# $input_manifest = Path and file name of the current manifest. The filename should end with .json or .yaml
# $output_path_filename = Path and file name to store the manifest. The filename should end with .json or .yaml
# $addSnaps = Comma separated list of snap ids you want to add to your manifest. You can get the snap ids from # the `snapctl snaps enumerate --out-path-filename ./snaps.json` command.
# $removeSnaps = Comma separated list of snap ids you want to remove from your manifest. You can get the snap ids from # the `snapctl snaps enumerate --out-path-filename ./snaps.json` command.
# $addFeatures = Pass `WEB_SOCKETS` if you want to enable web sockets for your backend.
# $removeFeatures = Pass `WEB_SOCKETS` if you want to disable web sockets for your backend.
# Note: One of add-snaps, remove-snaps, add-features or remove-features is required
# Example:
#   snapctl snapend-manifest update --manifest-path-filename ./snapser-jn86b0dv-manifest.yaml --add-snaps game-server-fleets --remove-snaps analytics --remove-features WEB_SOCKETS --out-path-filename ./snapend-updated-manifest.yaml

snapctl snapend-manifest update --manifest-path-filename $input_manifest --add-snaps $addSnaps --remove-snaps $removeSnaps --add-features $addFeatures --remove-features $removeFeatures --out-path-filename $output_path_filename

8. Snapend

Snapctl commands for your snapend

1. snapend help

See all the supported commands

# Help for the snapend command
snapctl snapend --help

2. snapend download

Download Manifest, SDKs and Protos for your Snapend

# Help for the download command
snapctl snapend download --help

# Download your Snapend SDK and Protos
# $snapend_id = Cluster Id
# $category = snapend-manifest, sdk, protos
# $format = One of the supported formats:
#   snapend-manifest(yaml, json)
#   sdk(unity, unreal, roblox, godot, cocos, ios-objc, ios-swift, android-java, android-kotlin, web-ts, web-js, flutter-dart),
#   sdk(csharp, cpp, lua, ts, go, python, kotlin, java, c, node, js, perl, php, closure, ruby, rust, dart),
#   protos(go, csharp, cpp, raw)
# $type = One of the supported types:
#   For category=sdk type=(user, server, internal, unified, app)
#   For category=protos type=(messages, services)
# $http_lib (optional) = One of the supported libs
#   For category=sdk format=unity http-lib=(httpclient, unitywebrequest, restsharp)
#   For category=sdk format=csharp http-lib=(httpclient, restsharp)
#   For category=sdk format=web-ts http-lib=(axios, fetch)
#   For category=sdk format=ts http-lib=(axios, fetch)
# Example:
# snapctl snapend download --snapend-id gx5x6bc0 --category snapend-manifest --format yaml --out-path .
# snapctl snapend download --snapend-id gx5x6bc0 --category sdk --format unity --type user --out-path .
# snapctl snapend download --snapend-id gx5x6bc0 --category sdk --format cpp --type internal --out-path .
# snapctl snapend download --snapend-id gx5x6bc0 --category protos --format raw --type messages --out-path .
# snapctl snapend download --snapend-id gx5x6bc0 --category sdk --format unity --type user --http-lib unitywebrequest --out-path .
snapctl snapend download --snapend-id $snapend_id --category $category --format $format --type $type --out-path $out_path
snapctl snapend download --snapend-id $snapend_id --category $category --format $format --type $type --http-lib $http_lib --out-path $out_path

3. snapend create

Create a Snapend from an existing manifest. Passing the blocking flag ensures your CLI command waits till the new Snapend is up.

# Help for the crete command
snapctl snapend create --help

# Create a Snapend
# $application_id = Application Id. Instead of passing this as an argument, you can set it with the SNAPSER_APPLICATION_ID environment variable or in your Snapser config under the SNAPSER_APPLICATION_ID key.
# $path_to_manifest = Path to the manifest file; should include the file name
# Optionally override name and environment by passing the --name and --environment overrides
# Example:
# snapctl snapend create --manifest-path-filename $path_to_manifest --application-id $application_id  --blocking
snapctl snapend create --manifest-path-filename $path_to_manifest --application-id $application_id
snapctl snapend create --manifest-path-filename $path_to_manifest --application-id $application_id --blocking
snapctl snapend create --name $name --env $env --manifest-path-filename $path_to_manifest --application-id $application_id --blocking

4. snapend clone

Clone a Snapend from an existing manifest. Passing the blocking flag ensures your CLI command waits till the new Snapend is up.

# Help for the clone command
snapctl snapend clone --help

# Clone your Snapend
# $application_id = Application Id. Instead of passing this as an argument, you can set it with the SNAPSER_APPLICATION_ID environment variable or in your Snapser config under the SNAPSER_APPLICATION_ID key.
# $snapend_name = Name of your new Snapend
# $env = One of development, staging
# $path_to_manifest = Path to the manifest file; should include the file name
# Example:
# snapctl snapend clone --application-id 2581d802-aca-496c-8a76-1953ad0db165 --name new-snapend --env development --manifest-path-filename "C:\Users\name\Downloads\snapser-ox1bcyim-manifest.json" --blocking
snapctl snapend clone --application-id $application_id --name $snapend_name --env $env --manifest-path-filename "$path_to_manifest"
snapctl snapend clone --application-id $application_id --name $snapend_name --env $env --manifest-path-filename "$path_to_manifest" --blocking

5. snapend apply

Apply changes to your Snapend from a manifest. You should have the latest manifest before applying changes. Basically, when you download a manifest, Snapser adds an applied_configuration section to your manifest, which stores the state of the Snapend during export. Now, if someone manually updates the Snapend or a configuration of a Snap, you are no longer going to have the latest Snapend representation in the applied_configuration. This is how Snapser prevents you from stomping over someone elses changes.

You can optionally pass a --force flag telling Snapser to ignore any diffs it may find in the current state of the Snapend and the one in the applied_configuration field of your manifest. Essentially, this flag allows you to stomp over any changes and tell Snapser to force apply.

Separately, you can pass a blocking flag to make your CLI wait for the Snapend update to complete.

# Help for the apply command
snapctl snapend apply --help

# Apply changes to a snapend via manifest
# $path_to_manifest = Path to the manifest file; should include the file name
# --force = Optional flag to tell Snapser that you do not want it to check the diff between the Snapend states and just force apply the changes
# Example:
# snapctl snapend apply --manifest-path-filename "C:\Users\name\Downloads\snapser-ox1bcyim-manifest.json" --force --blocking
snapctl snapend apply --manifest-path-filename "$path_to_manifest"
snapctl snapend apply --manifest-path-filename "$path_to_manifest" --blocking
snapctl snapend apply --manifest-path-filename "$path_to_manifest" --force --blocking

6. snapend update

Update your BYOSnap or BYOGs versions for the Snapend

# Help for the byogs command
snapctl snapend update --help

# Update your Snapend with new BYOSnaps and BYOGs
# $snapend_id = Cluster Id
# $byosnaps = Comma separated list of BYOSnap ids and version. Each entry is
#             service_id:service_version, with an optional third colon-separated
#             value pointing at a BYOSnap profile JSON file on disk. When the
#             profile path is provided, its JSON contents are loaded and sent
#             along with the update. The profile path is optional per BYOSnap.
# $byogs = Comma separated list of BYOGs fleet name, id and version.
# --blocking = (Optional) This makes sure the CLI waits till your Snapend is live.
# Note at least one of the two needs to be present
# Example:
# snapctl snapend update --snapend-id gx5x6bc0 --byosnaps byosnap-service-1:v1.0.0,byosnap-service--2:v1.0.0 --byogs byogs-fleet-one:gs-1:v0.0.1,my-fleet-two:gs-2:v0.0.4
# snapctl snapend update --snapend-id gx5x6bc0 --byosnaps byosnap-service-1:v1.0.0,byosnap-service--2:v1.0.0 --byogs fleet-one:v0.0.1,fleet-two:v0.0.4 --blocking
# Example with optional BYOSnap profile (third value, only on the first entry):
# snapctl snapend update --snapend-id gx5x6bc0 --byosnaps byosnap-service-1:v1.0.0:/Users/DevName/Development/SnapserEngine/byosnap-python/snapser-resources/snapser-byosnap-profile.json,byosnap-service--2:v1.0.0
snapctl snapend update --snapend-id $snapend_id --byosnaps $byosnaps --byogs $byogs --blocking

7. snapend state

Get the Snapend state

# Help for the byogs command
snapctl snapend state --help

# Get the Snapend state
# $snapend_id = Cluster Id
# Example:
# snapctl snapend state gx5x6bc0
snapctl snapend state --snapend-id $snapend_id

9. Generate

Generator tool to help generate credentials

1. generate help

See all the supported commands

# Help for the generate command
snapctl generate --help

2. Generate ECR Credentials

Generate the ECR credentials. Game studios can use these credentials to self publish their images to Snapser.

snapctl generate credentials --category "ecr" --out-path $output_path

10. Snap Configuration

Retrieve snap-specific configuration from a deployed Snapend.

1. snap-config help

See all the supported commands

# Help for the snap-config command
snapctl snap-config --help

2. snap-config get-config

Get the configuration for specific snaps from a Snapend. This downloads the Snapend manifest and extracts the settings for the requested snap IDs.

# Get configuration for specific snaps from a snapend
# $snaps = Comma separated list of snap IDs (e.g., analytics,auth,inventory)
# $snapend_id = The Snapend ID to fetch the configuration from
snapctl snap-config get-config --snaps $snaps --snapend-id $snapend_id

Error codes

CLI Return Codes

Error Code Description
0 Operation completed successfully
1 General error
2 Input error
3 Resource not found
4 Internal server error
5 Maintenance Mode

Configuration Errors

Error Code Description
10 Configuration incorrect
11 Configuration error
12 Dependency missing

Snaps Errors

Error Code Description
13 Snaps Generic error
14 Snaps Enumerate error

Snapend Manifest Errors

Error Code Description
16 Snapend Manifest create error
17 Snapend Manifest update error
18 Snapend Manifest upgrade error
19 Snapend Manifest update error

BYOGS Errors

Error Code Description
3 Resource not found: BYOGs resource not found
20 Generic BYOGS error
21 BYOGS dependency missing
22 BYOGS ECR login error
23 BYOGS build error
24 BYOGS tag error
25 BYOGS publish error
26 BYOGS publish permission error
27 BYOGS publish duplicate tag error

BYOSNAP Errors

Error Code Description
3 Resource not found: BYOSnap resource not found
30 Generic BYOSNAP error
31 BYOSNAP dependency missing
32 BYOSNAP ECR login error
33 BYOSNAP build error
34 BYOSNAP tag error
35 BYOSNAP publish image error
36 BYOSNAP publish image permission error
37 BYOSNAP publish image duplicate tag error
38 BYOSNAP create error
39 BYOSNAP create permission error
40 BYOSNAP create duplicate name error
41 BYOSNAP publish version error
42 BYOSNAP publish version permission error
43 BYOSNAP publish version duplicate version error
44 BYOSNAP publish version duplicate tag error
45 BYOSNAP update version error
46 BYOSNAP update version service in use
47 BYOSNAP update version tag error
48 BYOSNAP update version invalid version error
49 BYOSNAP publish error
86 BYOSNAP generate-profile
87 BYOSNAP swagger error

Application Errors

Error Code Description
3 Resource not found: Application resource not found
50 Generic application error
51 Application create error
52 Application create permission error
53 Application create limit error
54 Application create duplicate name error
55 Application enumerate error

Secret Errors

Error Code Description
3 Resource not found: Secret resource not found
4 Internal server error: Secret encryption failure (backend api_error_code 584)
100 Generic secret error
101 Secret enumerate error
102 Secret get error
103 Secret create error
104 Secret create duplicate error — (file_name, tag) already exists (backend api_error_code 588)
106 Secret delete error
107 Secret delete failed — secret is referenced by a cluster manifest (backend api_error_code 582)
108 Secret reveal error

Snapend Errors

Error Code Description
3 Resource not found: Snapend resource not found
60 Generic snapend error
61 Snapend enumerate error
62 Snapend clone error
63 Snapend clone server error
64 Snapend clone timeout error
65 Snapend apply error
66 Snapend apply server error
67 Snapend apply timeout error
68 Snapend promote error
69 Snapend promote server error
70 Snapend promote timeout error
71 Snapend download error
72 Snapend update error
73 Snapend update server error
74 Snapend update timeout error
75 Snapend state error
76 Snapend manifest mismatch error
77 Snapend create error
78 Snapend create server error
79 Snapend create timeout error

Generate Errors

Error Code Description
80 Generic generate error
81 Generate credentials error

Snap Configuration Errors

Error Code Description
91 Snap Configuration error
92 Snap Configuration download error

BYOWS Errors

Error Code Description
95 Generic byows error
96 Byows attach error
97 Byows reset error
98 Byows detach error

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snapctl-1.11.0.tar.gz (110.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snapctl-1.11.0-py3-none-any.whl (118.0 kB view details)

Uploaded Python 3

File details

Details for the file snapctl-1.11.0.tar.gz.

File metadata

  • Download URL: snapctl-1.11.0.tar.gz
  • Upload date:
  • Size: 110.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.10 Darwin/23.5.0

File hashes

Hashes for snapctl-1.11.0.tar.gz
Algorithm Hash digest
SHA256 bbd4f042ba7908c55316a08e2a49dd022ad78f5fa43a8fc6a03bc77024794d77
MD5 a6e74a01e23f534ee5b3a52a6c47f789
BLAKE2b-256 96020e59bf01d86d03f2d06d4d7961139b8c9df27d3b56dfe9d2c1a9c5f8d873

See more details on using hashes here.

File details

Details for the file snapctl-1.11.0-py3-none-any.whl.

File metadata

  • Download URL: snapctl-1.11.0-py3-none-any.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.10 Darwin/23.5.0

File hashes

Hashes for snapctl-1.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d93a41fa4ff82b325f6b55f16365f5f236845e7b93afc440d6a20ff43a416bbe
MD5 4e4f2f7352bfa47ad9a5e5ca7cd2d82c
BLAKE2b-256 d5e72c9ef078449dd370164f05385136492ec643e5a0b7beb656099856bb463b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page