# Basic Commands

> Useful basic commands available to access Affinidi services.

affinidi start

Log in to Affinidi

### affinidi start

Log in to Affinidi

USAGE

```bash
affinidi  start [--json] [--no-color] [--no-input]
```

GLOBAL FLAGS

--json  Format output as json.

--no-color Disables color in the output. If you have trouble distinguishing colors, consider using this flag.

--no-input Disables all the interactive prompts

EXAMPLES

```bash
affinidi  start
```

    affinidi stop

Log out from Affinidi

### affinidi stop

Log out from Affinidi

USAGE

```bash
affinidi  stop [--json] [--no-color] [--no-input]
```

GLOBAL FLAGS

--json  Format output as json.

--no-color Disables color in the output. If you have trouble distinguishing colors, consider using this flag.

--no-input Disables all the interactive prompts

EXAMPLES

```bash
affinidi  stop
```

    affinidi whoami

Returns user’s subject, projects, and token details from the current session.

### affinidi whoami

Returns user’s subject, projects, and token details from the current session.

USAGE

```bash
affinidi  whoami [--json] [--no-color] [--no-input]
```

GLOBAL FLAGS

--json  Format output as json.

--no-color Disables color in the output. If you have trouble distinguishing colors, consider using this flag.

--no-input Disables all the interactive prompts

EXAMPLES

```bash
affinidi  whoami
```

    affinidi help

Display help for affinidi.

### affinidi help [COMMAND]

Display help for affinidi.

USAGE

```bash
affinidi  help [COMMAND...] [-n]
```

ARGUMENTS

COMMAND…  Command to show help for.

FLAGS

-n, --nested-commands Include all nested commands in the output.

DESCRIPTION

Display help for affinidi.

    affinidi search

Search for a command.

### affinidi search

Search for a command.

USAGE

```bash
affinidi  search
```

DESCRIPTION

Search for a command.	Once you select a command, hit enter and it will show the help for that command.

    affinidi commands

List allaffinidi commands.

### affinidi commands

List allaffinidi commands.

USAGE

```bash
affinidi  commands [--json] [-c id|plugin|summary|type... | --tree]	 [--deprecated] [-x | ] [--hidden] [--no-truncate | ] [--sort id|plugin|summary|type | ]
```

FLAGS

-c, --columns=[option]…  Only show provided columns (comma-separated).							  [options: id|plugin|summary|type]

-x, --extended		 Show extra columns.

--deprecated    Show deprecated commands.

--hidden 	   Show hidden commands.

--no-truncate   Do not truncate output.

 --sort=[option]		[default: id] Property to sort by.							  [options: id|plugin|summary|type]

--tree 		 Show tree of commands.

GLOBAL FLAGS

--json Format output as json.

DESCRIPTION

List allaffinidi commands.

    affinidi autocomplete

Display autocomplete installation instructions.

### affinidi autocomplete [SHELL]

Display autocomplete installation instructions.

USAGE

```bash
affinidi  autocomplete [SHELL] [-r]
```

ARGUMENTS

SHELL  (zsh|bash|powershell) Shell type

FLAGS

-r, --refresh-cache Refresh cache (ignores displaying instructions)

DESCRIPTION

Display autocomplete installation instructions.

EXAMPLES

```bash
affinidi  autocomplete
```

```bash
affinidi autocomplete bash
```

```bash
affinidi autocomplete zsh
```

```bash
affinidi autocomplete powershell
```

```bash
affinidi autocomplete --refresh-cache
```

### affinidi –version

Show the current version of the Affinidi CLI installed on your machine.

```Bash
affinidi --version
```
