-
Notifications
You must be signed in to change notification settings - Fork 961
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
Cloud CLI documentation #2086
base: main
Are you sure you want to change the base?
Cloud CLI documentation #2086
Conversation
meganelacheny
commented
Apr 17, 2024
•
edited
edited
- Create Cloud CLI section in Cloud documentation TOC
- Document Cloud CLI in dedicated page
- Update deployment guide in Cloud docs
- Create deployment guide specifically for CLI
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, Mégane, thanks! 🚀 Looks good to me
I only made some wording suggestions to avoid a possible confusion between code stored in a local git repository and code hosted in a remote repository (GitHub, GitLab…).
Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com>
Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com>
Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com>
Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com>
Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the doc!
Is it normal that there is no doc related to create-strapi-app command?
|
||
Strapi Cloud comes with a Command Line Interface (CLI) which allows you to log in and out, and to deploy a project that is not hosted on a remote git repository. The CLI works with both the `yarn` and `npm` package managers. | ||
|
||
The Cloud CLI is designed as a CLI-only experience, meaning that users who wish to use Strapi Cloud to deploy their project with the CLI will have to mostly stick to using the CLI (e.g. if you login with the CLI you must logout with the CLI as well, your project deployed with the CLI can only be redeployed with the CLI etc.). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ It's only true for the first version of the CLI. We will need to change this line once we release the next iteration 🤞
|
||
**Alias:** `strapi cloud:deploy` | ||
|
||
Deploy a new project (< 100MB), not already hosted on a remote git repository, in Strapi Cloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hosted or not, it doesn't change anything. The user will deploy the local version of his project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make more sense to you @nathan-pichon if I change the sentence to "Deploy a new local project (< 100MB) in Strapi Cloud."? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, yes 🤔
strapi deploy | ||
``` | ||
|
||
This command must be used after the `login` one. It deploys a local Strapi project on Strapi Cloud, without having to host it on a remote git repository beforehand. The terminal will display a progress bar until the project is successfully deployed on Strapi Cloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The progress bar is only for uploading time, not for building time (and not for deploying time).
The deploy command work in 3 phases. First compression and upload of the project (progress bar). Then build time (user will get the logs according to the build phase). Then deploy time (user won't have the logs in CLI) that can be retrieve on Cloud Dashboard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I'll remove the part about the progress bar then 🤓
Once the project is first deployed on Strapi Cloud with the CLI, the `deploy` command can be reused to trigger a new deployment of the same project. | ||
|
||
:::caution | ||
The `deploy` command can only be used by new users who have never created a Strapi Cloud project, and for which the free trial is still available. Once a project is deployed with the CLI, it isn't possible to deploy another project on the same Strapi Cloud account with the CLI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ It's only true for the first version of the CLI. 🤞