Pre-requirements for Croncat Agent
Before you start installing the Croncat Agent Cli you need to prepare your computer/server/vps.
Please see the launch-tools repository for details on getting your agent set up.
Before you start, you might want to ensure your system is up to date.
sudo apt update && sudo apt upgrade -y
Install Nodes.js and NPM:
curl -sL https://deb.nodesource.com/setup_17.x | sudo -E bash - sudo apt install build-essential nodejs PATH="$PATH"
Check NodeJS and NPM version:
And install NEAR-Cli:
sudo npm install -g near-cli
The environment will need to be set each time a new shell is launched to select the correct network.
And add to the
~/.bashrc file (or
~/.zshrc, etc. if your system uses a different one) so that you don't have to enter the command every time you log in
echo 'export NEAR_ENV=<network>' >> ~/.bashrc
And now you can make a login:
This command launches a web browser allowing for the authorization of a full access key to be copied locally.