Quick start¶
1. Install¶
2. Declare a key¶
rbxapikey.toml
[settings]
default_expiration_months = 3
default_allowed_cidrs = ["203.0.113.7/32"] # the addresses allowed to use keys
default_secret_file = ".secrets/{name}.env"
[keys.deploy]
universe_ids = [9876543210]
scopes = ["universe-places:write", "universe:read"]
Add .secrets/ to .gitignore: create refuses otherwise.
3. Check you may create it¶
Sign in to Roblox Studio with the account that will own the key (rbx-apikey uses its session, after asking), then:
4. Create and use it¶
rbx-apikey create deploy
export RBX_API_KEY=$(rbx-apikey resolve deploy)
rbx-apikey doctor --universe-id 9876543210
5. Keep it in step¶
Edit rbxapikey.toml, then: