Laika Labs CLI is a command line tool that simplifies working with web3, providing an efficient and easy way to create and test smart contracts through Laika, the Request Builder for Web3.

Good day everyone! Today I’m really excited to introduce you to a tool that we’ve been building for a while now called the “Laika-Labs-CLI”.

Laika Labs CLI is a command line tool that simplifies the process of working with web3 and blockchain technology. It is built to work with Laika, the request builder for web3 that acts as the “Postman for blockchain.” And it will provide developers with an efficient and easy way to create, and test smart contracts.

Installing Laika Labs CLI

  1. To install Laika Labs CLI, open a terminal window and run the command npm install -g @laika-labs/cli.
    This installs the CLI globally on your computer.
  2. Verify the installation by running laika -v, which should display the version number of the CLI.

Syncing a Beaker Smart Contract to Laika via Laika Labs CLI

Beaker is a smart contract development tool that allows developers to create and deploy CosmWasm smart contracts on the blockchain. Laika, on the other hand, is a web3 request builder similar to Postman, which makes it easy to test and interact with your smart contracts.

  1. To sync a Beaker project with Laika, navigate to the directory of the Beaker project in your terminal.
  2. Run the command beaker wasm ts-gen to generate schema for smart contracts, and then run laika beaker sync <contract-name>, where <contract-name> is the name of the contract you want to sync.
  3. A link will be generated in the terminal, click on it, and it will automatically generate a new request for you in Laika, allowing you to easily test and interact with your smart contract.

By following these steps, you can easily use Laika and Beaker together to streamline your smart contract development process.

Demo for Laika-Labs CLI syncing requests in beaker project to Laika

That’s it for today! Catch up with you guys later!

Connect with us
Twitter: https://twitter.com/getlaikaapp
Facebook: https://www.facebook.com/getlaikaapp/
Discord: https://discord.gg/4DzwHuxhcf

PS. This article is co-written by ChatGPT. A big shoutout to ChatGPT for its amazing assistance in writing this article!