← All Modules

assay.unleash

Unleash feature flag management. Projects, features, environments, strategies, API tokens. Client: unleash.client(url, {token="..."}). Module helpers: M.wait(), M.ensure_project(), M.ensure_environment(), M.ensure_token().

Health

Projects

Environments

Features

Strategies

API Tokens

Module Helpers

Example:

local unleash = require("assay.unleash")
unleash.wait("http://unleash:4242")
local c = unleash.client("http://unleash:4242", {token = env.get("UNLEASH_ADMIN_TOKEN")})
unleash.ensure_project(c, "my-project", {name = "My Project"})
unleash.ensure_environment(c, "my-project", "production")
c:create_feature("my-project", {name = "dark-mode", type = "release"})
c:toggle_on("my-project", "dark-mode", "production")