Skip to content

Commit

Permalink
include init from existing
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannho committed Dec 11, 2023
1 parent d481cb5 commit d5b85b8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions doc/user-guide/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,15 @@ The `deploy` command will print a URL that you can visit to track deployment pro

## Configure an existing project

If you want to deploy an existing project, create a `ploomber-cloud.json` file in the root directory of your project with the following structure:
If you want to deploy an existing project run the `init` command with the `--from-existing` flag:

```json
{
"id": "APP_ID",
"type": "APP_TYPE"
}
```sh
ploomber-cloud init --from-existing
```

Substitute `id` for your project ID and `type` for the app type (`docker`, `panel`, `streamlit`, etc.)
This will prompt you to choose from a list of your existing projects.

For example, if my app ID is `cool-tree-1860` and I'm deploying a `docker` app:
Upon your choice, the command will generate a `ploomber-cloud.json` with your project's info. For example, if my app ID is `cool-tree-1860` and I'm deploying a `docker` app:


```json
Expand Down

0 comments on commit d5b85b8

Please sign in to comment.