
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@layerzerolabs/devtools-cli
Advanced tools
This package provides a network-agnostic CLI interface for configuring LayerZero OApp contracts.
Please note that this package is in a beta state and backwards-incompatible changes might be introduced in future releases. The functionality is not yet on par with @layerzerolabs/toolbox-hardhat. While we strive to comply to semver, we can not guarantee to avoid breaking changes in minor releases.
The CLI is distributed as an NPM package, we recommend the following ways of running it:
npx @layerzerolabs/devtools-cli@latest
# or
yarn @layerzerolabs/devtools-cli
# or
pnpm @layerzerolabs/devtools-cli
# or
bunx @layerzerolabs/devtools-cli
The configuration of the CLI consists of two parts:
layerzero.config.ts)layerzero.setup.ts)The main difference between this CLI and @layerzerolabs/toolbox-hardhat is the layerzero.setup.ts file. While in @layerzerolabs/toolbox-hardhat lot of the functionality can be inferred based on hardhat, it is not possible to infer this functionality in a generic CLI environment.
The following is an example of a setup file that loads the EVM functionality based on hardhat.
import {
createConnectedContractFactory,
createSignerFactory,
createDefaultContext,
} from "@layerzerolabs/devtools-evm-hardhat";
import { createOAppFactory } from "@layerzerolabs/ua-devtools-evm";
import type { CLISetup } from "@layerzerolabs/devtools-cli";
/**
* Since we are not in hardhat CLI, we'll need to create the context first
*/
createDefaultContext();
/**
* This is a setup file for @layerzerolabs/devtools-cli.
*
* At the moment, @layerzerolabs/devtools-cli is in development
* and will be available
*/
const setup: CLISetup = {
createSdk: createOAppFactory(createConnectedContractFactory()),
createSigner: createSignerFactory(),
};
export default setup;
FAQs
CLI for configuring LayerZero OApp contracts
The npm package @layerzerolabs/devtools-cli receives a total of 0 weekly downloads. As such, @layerzerolabs/devtools-cli popularity was classified as not popular.
We found that @layerzerolabs/devtools-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.