Powered by [Ilhasoft's Web Team](http://www.ilhasoft.com.br/en/).
Portainer CLI is a Python software to use in command line. Use this command line interface to easy communicate to your [Portainer](https://portainer.io/) application, like in a continuous integration and continuous deploy environments.
## Install
```
pip install [--user] portainer-cli
```
## Usage
### Global flags
| Flag | Description |
|--|--|
| `-l` or `--local` | Save and load configuration file (`.portainer-cli.json`) in current directory. |
| `-d` or `--debug` | Enable DEBUG messages in stdout |
### configure command
Configure Portainer HTTP service base url.
```bash
portainer-cli configure base_url
```
**E.g:**
```bash
portainer-cli configure http://10.0.0.1:9000/
```
### login command
Identify yourself and take action.
```bash
portainer-cli login username password
```
**E.g:**
```bash
portainer-cli login douglas d1234
```
### update_stack command
Update stack.
```bash
portainer-cli update_stack id endpoint_id [stack_file]