From d5b85b85a300097c76a724cfdf3a77f36e21c93c Mon Sep 17 00:00:00 2001 From: Bryan Ho Date: Mon, 11 Dec 2023 11:45:47 -0800 Subject: [PATCH] include init from existing --- doc/user-guide/cli.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/doc/user-guide/cli.md b/doc/user-guide/cli.md index f2ca37f5..1508ef38 100644 --- a/doc/user-guide/cli.md +++ b/doc/user-guide/cli.md @@ -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