Installing and configuring FlexoCLI takes just a few steps. Follow this guide to set up your environment and start leveraging AI-powered DeFi analytics in minutes.
1
Clone the repository
First, download the latest version of Flexo CLI from GitHub and navigate to the project directory:
This gives you access to the full Flexo CLI framework, ready for installation.
2
Install dependencies
Ensure all required packages are installed by running:
npminstall
This will fetch and install all necessary dependencies, ensuring a smooth experience when using Flexo CLI.
3
Generate a wallet keypair
Flexo CLI interacts with the Solana blockchain, so you need a valid wallet.
# Generate new keypairsolana-keygennew--outfile~/.config/solana/flexo-wallet.json# Set default walletsolanaconfigset--keypair~/.config/solana/flexo-wallet.json# Verify wallet setupsolanaaddresssolanabalance
Fund your wallet with SOL to interact with blockchain-based features seamlessly.
4
Set up environment variables
Flexo CLI requires certain environment variables to function properly. Configure these in a .env file or export them in your terminal:
With everything set up, you can now explore Flexo CLI’s powerful features. Run your first command to ensure the setup works:
npmrunflexo
To explore all the available CLI commands, head over to our command guide.
Never expose your API keys or private wallet keys in public repositories. Use .gitignore to prevent the .env file from being committed, and consider secure storage solutions like AWS Secrets Manager or environment variable encryption.