Skip to content

Commit

Permalink
feat: Add support for custom redirect port in clasp login
Browse files Browse the repository at this point in the history
This commit introduces a new feature allowing users to specify a custom redirect port for the `clasp login` command using the `--redirect-port` flag. This enhances flexibility, especially in Docker or CI/CD environments.

Also, updates package-lock.json due to dependency changes.
  • Loading branch information
Correct Name authored and i4erkasov committed Nov 18, 2024
1 parent d633ca9 commit c0a938e
Show file tree
Hide file tree
Showing 6 changed files with 273 additions and 1,315 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,14 @@ Logs the user in. Saves the client credentials to a `.clasprc.json` file.
- `--no-localhost`: Do not run a local server, manually enter code instead.
- `--creds <file>`: Use custom credentials used for `clasp run`. Saves a `.clasprc.json` file to current working directory. This file should be private!
- `--status`: Print who you are currently logged in as, if anyone.
- `--redirect-port <port>`: Specify a custom port for the local redirect server during the login process. Useful for environments where a specific port is required.

#### Examples

- `clasp login --no-localhost`
- `clasp login --creds creds.json`
- `clasp login --status`
- `clasp login --redirect-port 37473`

### Logout

Expand Down
Loading

0 comments on commit c0a938e

Please sign in to comment.