Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init From Existing Instructions #53

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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