mirror of
https://github.com/screenci/screenci.git
synced 2026-09-19 08:57:46 +08:00
refactor screenci init flow
This commit is contained in:
+2
-2
@@ -23,7 +23,7 @@ Most commands look for `screenci.config.ts` in the current directory. Use `--con
|
||||
|
||||
## `screenci init [name]`
|
||||
|
||||
Creates a new ScreenCI project directory with a starter config, example video, Dockerfile, and workflow files. Authentication happens automatically during `init`: a browser window opens so you can log in, and `SCREENCI_SECRET` is saved to `.env` in the new project. You do not need to authenticate separately before running `screenci record`.
|
||||
Creates a new ScreenCI project directory with a starter config, example video, Dockerfile, and workflow files. `init` does not authenticate. If `SCREENCI_SECRET` is missing, `screenci record` will open a browser window and complete the login flow before recording starts.
|
||||
|
||||
```bash
|
||||
npx screenci init
|
||||
@@ -48,7 +48,7 @@ Use this when you want normal Playwright execution without recording.
|
||||
|
||||
## `screenci record [playwrightArgs...]`
|
||||
|
||||
Records videos with ScreenCI. On the host this normally builds and runs the project inside a container, then uploads results if `SCREENCI_SECRET` is set. Authentication is handled by `screenci init` — `record` does not prompt for credentials.
|
||||
Records videos with ScreenCI. On the host this normally builds and runs the project inside a container, then uploads results if `SCREENCI_SECRET` is set. If the secret is missing, `record` prompts for login before the recording begins.
|
||||
|
||||
```bash
|
||||
npx screenci record
|
||||
|
||||
Reference in New Issue
Block a user