diff --git a/lib/spaceship/client.rb b/lib/spaceship/client.rb
index <HASH>..<HASH> 100644
--- a/lib/spaceship/client.rb
+++ b/lib/spaceship/client.rb
@@ -78,6 +78,7 @@ module Spaceship
     end
 
     def team_id
+      return ENV['FASTLANE_TEAM_ID'] if ENV['FASTLANE_TEAM_ID']
       return @current_team_id if @current_team_id
       
       if teams.count > 1
Added support for FASTLANE_TEAM_ID environment variable