@datacamp/learn-vm-scripts
v1.14.0
Published
Scripts used by VMs in learn.
Maintainers
Keywords
Readme
learn-vm-scripts frontend repo
Installation
Clone the repository:
git clone https://github.com/your-repo/puppeteer-cli-login.git cd puppeteer-cli-loginUse corret Node version
nvm useInstall dependencies
yarn install
Usage
This project contains a program that logs in to a cloud provider using Puppeteer.
To build:
yarn buildTo start the file watcher:
yarn cli -- --inputFilePath <path-to-input-file> --outputFilePath <path-to-output-file> --executablePath <path-to-chromium-executable> --userDataDir <path-to-user-data-dir>The program watches the input file for changes. To log in to a cloud provider, write the following JSON object to the input file:
{ "url": "<url-to-login-page>", "username": "<your-username>", "password": "<your-password>", "cloudProvider": "<cloud-provider>"}❗️The input has to be written to a single line. When the login process is complete, the program writes a line to the output file. After this, the program exits.
