Skip to content

Commit

Permalink
Merge pull request #53 from bryannho/main
Browse files Browse the repository at this point in the history
Init From Existing Instructions
  • Loading branch information
edublancas authored Dec 11, 2023
2 parents d481cb5 + d5b85b8 commit 3d682dd
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 3d682dd

Please sign in to comment.