---
title: CLI
description: The Plash CLI tool
---
This module implements the Plash CLI functions. As they're built with fastcore `@call_parse` they can also be used in python directly.

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

[source](https://github.com/AnswerDotAI/plash_cli/blob/main/plash_cli/cli.py#L90)

### login

```python
def login(
    token:str=None, # Token to save directly to config
    show:bool=False, # Output the current session token
):
```

*Authenticate CLI with server and save config*

CLI usage:

```python
%%bash
plash-login --help
```

```output
usage: plash-login [-h] [--token (str)] [--show]

Authenticate CLI with server and save config

options:
  -h, --help     show this help message and exit
  --token (str)  Token to save directly to config
  --show         Output the current session token (default: False)

plash_cli 0.3.15
```

[source](https://github.com/AnswerDotAI/plash_cli/blob/main/plash_cli/cli.py#L153)

### deploy

```python
def deploy(
    path:pathlib._local.Path='.', # Path to project
    name:str=None, # Overrides the .plash file in project root if provided
    _force_data:bool=False, # Overwrite data/ directory during deployment
):
```

*Deploys app to production. By default, this command erases all files in your app which are not in data/. Then uploads all files and folders, except paths starting with `.` and except the local data/ directory. If `force_data` is used, then it erases all files in production. Then it uploads all files and folders, including `data/`, except paths starting with `.`.*

CLI usage:

```python
%%bash
plash-deploy --help
```

```output
usage: plash-deploy [-h] [--path (path)] [--name (str)] [--force-data]

options:
  -h, --help     show this help message and exit
  --path (path)  Path to project (default: .)
  --name (str)   Overrides the .plash file in project root if provided
  --force-data   Overwrite data/ directory during deployment (default: False)

plash_cli 0.3.15
```

[source](https://github.com/AnswerDotAI/plash_cli/blob/main/plash_cli/cli.py#L193)

### view

```python
def view(
    path:pathlib._local.Path='.', # Path to project directory
    name:str=None, # Overrides the .plash file in project root if provided
):
```

*Open your app in the browser*

CLI usage:

```python
%%bash
plash-view --help
```

```output
usage: plash-view [-h] [--path (path)] [--name (str)]

Open your app in the browser

options:
  -h, --help     show this help message and exit
  --path (path)  Path to project directory (default: .)
  --name (str)   Overrides the .plash file in project root if provided

plash_cli 0.3.15
```

[source](https://github.com/AnswerDotAI/plash_cli/blob/main/plash_cli/cli.py#L204)

### delete\_app

```python
def delete_app(
    path:pathlib._local.Path='.', # Path to project
    name:str=None, # Overrides the .plash file in project root if provided
):
```

*Delete your deployed app*

CLI usage:

```python
%%bash
plash-delete --help
```

```output
usage: plash-delete [-h] [--force] [--path (path)] [--name (str)]

Delete your deployed app

options:
  -h, --help     show this help message and exit
  --force        Skip confirmation prompt (default: False)
  --path (path)  Path to project (default: .)
  --name (str)   Overrides the .plash file in project root if provided

plash_cli 0.3.15
```

[source](https://github.com/AnswerDotAI/plash_cli/blob/main/plash_cli/cli.py#L228)

### start\_app

```python
def start_app(
    path:pathlib._local.Path='.', # Path to project
    name:str=None, # Overrides the .plash file in project root if provided
):
```

*Start your deployed app*

CLI usage:

```python
%%bash
plash-start --help
```

```output
usage: plash-start [-h] [--path (path)] [--name (str)]

Start your deployed app

options:
  -h, --help     show this help message and exit
  --path (path)  Path to project (default: .)
  --name (str)   Overrides the .plash file in project root if provided

plash_cli 0.3.15
```

[source](https://github.com/AnswerDotAI/plash_cli/blob/main/plash_cli/cli.py#L245)

### stop\_app

```python
def stop_app(
    path:pathlib._local.Path='.', # Path to project
    name:str=None, # Overrides the .plash file in project root if provided
):
```

*Stop your deployed app*

CLI usage:

```python
%%bash
plash-stop --help
```

```output
usage: plash-stop [-h] [--path (path)] [--name (str)]

Stop your deployed app

options:
  -h, --help     show this help message and exit
  --path (path)  Path to project (default: .)
  --name (str)   Overrides the .plash file in project root if provided

plash_cli 0.3.15
```

[source](https://github.com/AnswerDotAI/plash_cli/blob/main/plash_cli/cli.py#L265)

### logs

```python
def logs(
    path:pathlib._local.Path='.', # Path to project
    name:str=None, # Overrides the .plash file in project root if provided
    mode:__main__.log_modes='build', # Choose between build or app logs
):
```

*Get logs for your deployed app*

CLI usage:

```python
%%bash
plash-logs --help
```

```output
usage: plash-logs [-h] [--tail] [--path (path)] [--name (str)] [--mode {build,app}]

Get logs for your deployed app

options:
  -h, --help          show this help message and exit
  --tail              Tail the logs (default: False)
  --path (path)       Path to project (default: .)
  --name (str)        Overrides the .plash file in project root if provided
  --mode {build,app}  Choose between build or app logs (default: build)

plash_cli 0.3.15
```

[source](https://github.com/AnswerDotAI/plash_cli/blob/main/plash_cli/cli.py#L300)

### download\_app

```python
def download_app(
    path:pathlib._local.Path='.', # Path to project
    name:str=None, # Overrides the .plash file in project root if provided
    save_path:pathlib._local.Path='./download/', # Save path (optional)
):
```

*Download deployed app to save\_path.*

CLI usage:

```python
%%bash
plash-download --help
```

```output
usage: plash-download [-h] [--path (path)] [--name (str)] [--save-path (path)]

Download deployed app to save_path.

options:
  -h, --help          show this help message and exit
  --path (path)       Path to project (default: .)
  --name (str)        Overrides the .plash file in project root if provided
  --save-path (path)  Save path (optional) (default: ./download/)

plash_cli 0.3.15
```

[source](https://github.com/AnswerDotAI/plash_cli/blob/main/plash_cli/cli.py#L323)

### app\_list

```python
def app_list():
```

*List your deployed apps*

CLI usage:

```python
%%bash
plash-apps --help
```

```output
usage: plash-apps [-h] [--verbose]

options:
  -h, --help  show this help message and exit
  --verbose   Whether to show running status as well as name: 1=running, 0=stopped (default: False)

plash_cli 0.3.15
```

[source](https://github.com/AnswerDotAI/plash_cli/blob/main/plash_cli/cli.py#L337)

### plash\_tool\_info

```python
def plash_tool_info():
```

```python
# plash_tool_info()
```

Plash tools: &amp;`[login, deploy, start_app, stop_app, logs, download_app, app_list]`
