code: private static void setupAuth(AuthorizedOnly authCmd) throws Exception {
  	  String token = ApiClient.getToken();
  	  if(token != null) {
  	    try {
  	      new ApiClient(token);
  	    } catch(Exception e) {
  	      token = null;
  	    }
  	  }
  	  if(token == null && !authCmd.isAuthQuiet()) {
  	  	if(System.console() == null) {
  	  		System.err.println("Please reauthenticate with github.");
  	  		System.exit(1);
  	  	} else {
  		    String username = System.console().readLine("Username [github]: ");
  		    String password = new String(System.console().readPassword("Password: "));
  		    List<String> scopes = new ArrayList<String>();
  		    scopes.add("repo");
  		    ApiClient.authorizeAndCreateTokenFile(username, password, scopes, "Cadmium CLI");
  		    
  		    token = ApiClient.getToken();
  		  }
  	  }
  	  
  	  if(token != null) {
  	    authCmd.setToken(token);
  	  } else {
  	    if(authCmd.isAuthQuiet()) {
  	      System.err.println("Github auth failed: Please rerun cadmium install script [cli-install.py]");
  	    } else {
  	      System.err.println("Github auth failed");
  	    }
  	    System.exit(1);
  	  }
  	}
docs: <p>Retrieves and applies whatever previously authorized Github token was used. If the requested command
  requests quiet authentication this will exit with 1 when not authenticated. Otherwise, if the requested
  command doesn't request quiet authentication this will prompt for and authorize the current user in Github.</p>
  
  @see {@link AuthorizedOnly.isAuthQuiet}
  @param authCmd
  @throws Exception