Installation

To install the CLI extension, you can use the following command:

npm i -g @blockflow-labs/cli

To verify that the CLI extension has been installed correctly, use the following commands.

blockflow --version

If it runs without error, your system meets the requirements. Configure your cli with blockflow credentials to get started. Check this.

blockflow configure

Once setup, you can see all the commands supported using.

blockflow --help

System Requirements

  • Operating System - MacOs, Linux or Windows

  • Node.js >= 18

  • Package Manager - npm

  • Code Editor - VS Code


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.


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.

  1. Log in to your Blockflow account and go to the project for which you need the access key and secret key.

  2. On the Project Details page, locate the "Key Management" tab and click on it.

  3. The Key Management tab will display your project's access key and secret key.

  4. To copy the access key, click on the "Copy" button next to the access key value.

  5. 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.