Installation
To install the CLI extension, you can use the following command:
To verify that the CLI extension has been installed correctly, use the following commands.
If it runs without error, your system meets the requirements. Configure your cli with blockflow credentials to get started. Check this.
Once setup, you can see all the commands supported using.
System Requirements
Operating System - MacOs, Linux or Windows
Node.js >= 18
Docker >= v27.2.0
Package Manager - npm
Code Editor - VS Code
git >= v2.39.0
Typescript
Blockflow uses advanced TypeScript features to offer end-to-end type safety without code generation.
We strongly recommend taking the time to set up a working TypeScript development environment. It will pay dividends in the long run.
VS Code
By default, VSCode's TypeScript language features use an internal version of TypeScript. Sometimes, this version does not meet our requirement of >=5.1.6
To change VSCode's TypeScript version, run TypeScript: Select TypeScript version..."
from the command palette and select Use Workspace Version
or update VSCode's version.
Docker
Starting from version 2.0.0, Blockflow CLI requires Docker for local environment setup. With Docker, you don’t need to install PostgreSQL or MongoDB separately for testing. Ensure Docker is installed and running, and be cautious of running multiple test containers simultaneously to avoid port conflicts.
Ensure Docker is installed and running.
Docker Version: >= v27.2.0
Accessing Access Key and Secret Key in Blockflow
The command blockflow configure
will prompt you to enter access key and secret key. You can follow these steps to obtain your keys.
Log in to your Blockflow account and go to the project for which you need the access key and secret key.
On the Project Details page, locate the "Key Management" tab and click on it.
The Key Management tab will display your project's access key and secret key.
To copy the access key, click on the "Copy" button next to the access key value.
To copy the secret key, click on the "Copy" button next to the secret key value.
You can now use these copied access key and secret key values when prompted by the Blockflow configure command or when connecting to your project from external applications or services.
Treat your secret key as a password and keep it confidential. Do not share it with anyone or commit it to version control systems. If you suspect your secret key has been compromised, you can generate a new one from the Key Management tab.
Last updated