mirror of
https://github.com/Hopiu/portainer-cli.git
synced 2026-03-23 17:30:25 +00:00
Update README with new method
This commit is contained in:
parent
4b04192d2b
commit
c379b68c66
1 changed files with 5 additions and 4 deletions
|
|
@ -47,18 +47,19 @@ portainer-cli login username password
|
|||
portainer-cli login douglas d1234
|
||||
```
|
||||
|
||||
### update_stack command
|
||||
### create_or_update_stack command
|
||||
|
||||
Update stack.
|
||||
Either create or update stack based on whether or not it exists already.
|
||||
|
||||
```bash
|
||||
portainer-cli update_stack id endpoint_id [stack_file] [-env-file]
|
||||
portainer-cli create_or_update_stack endpoint_id [stack_file] stack_name [-env-file]
|
||||
```
|
||||
stack_file is mandatory when creating
|
||||
|
||||
**E.g:**
|
||||
|
||||
```bash
|
||||
portainer-cli update_stack 2 1 docker-compose.yml
|
||||
portainer-cli update_stack 1 stack-test docker-compose.yml
|
||||
```
|
||||
|
||||
#### Environment variables arguments
|
||||
|
|
|
|||
Loading…
Reference in a new issue