move icon indicating copy to clipboard operation
move copied to clipboard

[Movey] Add command to save Movey API Token

Open ea-open-source opened this issue 2 years ago • 1 comments

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

ea-open-source avatar Jun 27 '22 09:06 ea-open-source

tnowacki, wrwg, awelc, damirka Would you guys help us with rerunning Actions and reviews?

ea-open-source avatar Jul 15 '22 03:07 ea-open-source