The walkthrough guide assumes you have Statsig CLI installed and configured with the right API keys. Please refer to the Statsig CLI Overview to get started
Create a new gate
You can create a new empty gate with no rules by callingcreate
command on gates
Update new rules
New rules could be updated by passing a rule object to theupdate
command. This will replace the existing rules as a whole.
Check if the gate works
When the Client API key is configured correctly, you can invoke the gate for different users and validate the gate works Passing in no user object will create an empty user object and evaluate the gate against that--user
option
List all gates
Delete gate
You could also delete this gate via the CLI. By default there is a confirmation prompt that requires interaction.--force
option.