# hub app <name> access

Source: https://docs.myhub.host/cli/app/access

Show who can open the app, or choose: private, org or public.

* `private`: the org's owner and the people invited to the app
* `org`: every member of the org, and the people invited to the app
* `public`: anyone, with no Hub login

private and org require sign-in. Changing modes keeps the app's invitations. Access is set per instance; an invitation covers every instance of the app.

## Usage

```sh
hub app <name> access [options] [mode]
```

## Arguments

| Argument | Description                                                                           |
| -------- | ------------------------------------------------------------------------------------- |
| `<name>` | The app, or `app/instance` for an instance other than prod, such as `my-app/staging`. |
| `[mode]` | private, org or public. Optional.                                                     |

## Options

| Option   | Description                                        |
| -------- | -------------------------------------------------- |
| `--json` | Return a structured result for scripts and agents. |

## Examples

```sh
# Show who can open it
hub app my-app access

# Owner and invited people
hub app my-app access private

# Organization and invited people
hub app my-app access org

# Anyone, without a Hub login
hub app my-app access public
```