move
move copied to clipboard
[Movey] Add command to save Movey API Token
Motivation
The move movey-upload
command from https://github.com/move-language/move/pull/227 requires users to save their Movey's API token locally, which is inconvenient and error-prone to do manually.
This PR adds move movey-login
command, which allows users to save Movey's API Token using the CLI.
How to use it
Step 1: Run the following command on the terminal:
move movey-login
Step 2: Enter your Movey API Token (you can get it on Movey), and the token will be saved in $HOME/.move/movey_api_key.toml.
Have you read the Contributing Guidelines on pull requests?
Yes.
Test Plan
cargo test --package move-cli --test cli_tests save_credential cargo test --package move-cli --lib save_credential