# shipthis game android apiKey: Google Play Service Account Keys

> Reference for the shipthis game android apiKey commands. Connect to Google, create the service account key and invite it to your Google Play account.

Source: https://shipth.is/docs/reference/game/android/apiKey

Commands related to they Android Service Account API Key for a specific game

## Commands

### `game android apiKey connect`

#### Description

Connects ShipThis with Google for managing Service Account API Keys for an Android game

#### Help Output

```help
USAGE
  $ shipthis game android apiKey connect [-g <value>] [-d] [-f]

FLAGS
  -d, --disconnect
  -f, --force
  -g, --gameId=<value>  The ID of the game

DESCRIPTION
  Connects ShipThis with Google for managing Service Account API Keys for an Android game

EXAMPLES
  $ shipthis game android apiKey connect

  $ shipthis game android apiKey connect --force

  $ shipthis game android apiKey connect --disconnect
```

### `game android apiKey create`

#### Description

Creates a new Android Service Account API Key for a game

#### Help Output

```help
USAGE
  $ shipthis game android apiKey create [-g <value>] [-f] [-w]

FLAGS
  -f, --force
  -g, --gameId=<value>  The ID of the game
  -w, --waitForAuth     Wait for Google Authentication (10 mins).

DESCRIPTION
  Creates a new Android Service Account API Key for a game

EXAMPLES
  $ shipthis game android apiKey create

  $ shipthis game android apiKey create --gameId 0c179fc4
```

### `game android apiKey delete`

#### Description

Delete the active Android API Key from ShipThis

#### Help Output

```help
USAGE
  $ shipthis game android apiKey delete [-g <value>] [-i] [-y]

FLAGS
  -g, --gameId=<value>  The ID of the game
  -i, --immediate       Remove from storage immediately (rather than waiting for automatic cleanup - cannot be undone)
  -y, --iAmSure         I am sure I want to do this - do not prompt me

DESCRIPTION
  Delete the active Android API Key from ShipThis

EXAMPLES
  $ shipthis game android apiKey delete

  $ shipthis game android apiKey delete --immediate --iAmSure
```

### `game android apiKey export`

#### Description

Saves the current Android Service Account API Key to a ZIP file

#### Help Output

```help
USAGE
  $ shipthis game android apiKey export FILE [-f] [-g <value>]

ARGUMENTS
  FILE  Name of the ZIP file to create

FLAGS
  -f, --force           Overwrite the file if it already exists
  -g, --gameId=<value>  The ID of the game

DESCRIPTION
  Saves the current Android Service Account API Key to a ZIP file

EXAMPLES
  $ shipthis game android apiKey export apiKey.zip
```

### `game android apiKey import`

#### Description

Imports an Android Service Account API Key to your ShipThis account for the specified game.

#### Help Output

```help
USAGE
  $ shipthis game android apiKey import FILE [-f] [-g <value>]

ARGUMENTS
  FILE  Name of the ZIP file to import (must be in the same format as the export)

FLAGS
  -f, --force
  -g, --gameId=<value>  The ID of the game

DESCRIPTION
  Imports an Android Service Account API Key to your ShipThis account for the specified game.

EXAMPLES
  $ shipthis game android apiKey import apiKey.zip
```

### `game android apiKey invite`

#### Description

Invites the Service Account to your Google Play Account.

#### Help Output

```help
USAGE
  $ shipthis game android apiKey invite [ACCOUNTID] [-g <value>] [-p] [-w] [-a]

ARGUMENTS
  [ACCOUNTID]  The Google Play Account ID

FLAGS
  -a, --waitForGoogleApp  Waits for the Google Play app to be created.
  -g, --gameId=<value>    The ID of the game
  -p, --prompt            Prompt for the Google Play Account ID
  -w, --waitForAuth       Wait for Google Authentication (10 mins).

DESCRIPTION
  Invites the Service Account to your Google Play Account.

EXAMPLES
  $ shipthis game android apiKey invite
```

### `game android apiKey policy`

#### Description

Gets and sets the iam.disableServiceAccountKeyCreation policy for your Google Organization

#### Help Output

```help
USAGE
  $ shipthis game android apiKey policy [-g <value>] [-e | -r] [-w]

FLAGS
  -e, --enforce         Enforces the policy
  -g, --gameId=<value>  The ID of the game
  -r, --revoke          Revokes the policy
  -w, --waitForAuth     Wait for Google Authentication (10 mins).

DESCRIPTION
  Gets and sets the iam.disableServiceAccountKeyCreation policy for your Google Organization

EXAMPLES
  $ shipthis game android apiKey policy

  $ shipthis game android apiKey policy --enforce

  $ shipthis game android apiKey policy --revoke
```

### `game android apiKey show`

#### Description

Shows expanded details (service account email) for the Android Service Account API Key in your ShipThis account.

#### Help Output

```help
USAGE
  $ shipthis game android apiKey show [ID] [-g <value>]

ARGUMENTS
  [ID]  Credential ID (full or short prefix). Defaults to the active key.

FLAGS
  -g, --gameId=<value>  The ID of the game

DESCRIPTION
  Shows expanded details (service account email) for the Android Service Account API Key in your ShipThis account.

EXAMPLES
  $ shipthis game android apiKey show

  $ shipthis game android apiKey show d69f28c5
```

### `game android apiKey status`

#### Description

Displays the status of the Android Service Account API Key for a specific game.

#### Help Output

```help
USAGE
  $ shipthis game android apiKey status [-g <value>]

FLAGS
  -g, --gameId=<value>  The ID of the game

DESCRIPTION
  Displays the status of the Android Service Account API Key for a specific game.

EXAMPLES
  $ shipthis game android apiKey status

  $ shipthis game android apiKey status --gameId 0c179fc4
```
