oops...sorry I thought you meant you were running inside docker.
If you have a dev machine you can do something like
src/github.com/mattermost/platform $ go run mattermost.go -assign_role -team_name="yourteam" -email="you@example.com" -role="system_admin"