require_relative 'common' module Kontena::Cli::Grids class AddUserCommand < Clamp::Command include Kontena::Cli::Common include Common parameter "EMAIL", "Email address" def execute require_api_url token = require_token data = { email: email } client(token).post("grids/#{current_grid}/users", data) end end end