> For the complete documentation index, see [llms.txt](https://paul-gleason.gitbook.io/docker-and-docker-compose/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://paul-gleason.gitbook.io/docker-and-docker-compose/docker-compose/command-line.md).

# Command line

### Command Line Examples

Enter the command line using [run](https://docs.docker.com/engine/reference/commandline/compose_run/)

```
docker-compose run {instance_name} bash
```

Enter command line using [exec](https://docs.docker.com/engine/reference/commandline/compose_exec/)

```
docker-compose exec {instance_name} /bin/bash
```
