diff --git a/ethexe/cli/Cargo.toml b/ethexe/cli/Cargo.toml
index 5881401c96a..1acc058df39 100644
--- a/ethexe/cli/Cargo.toml
+++ b/ethexe/cli/Cargo.toml
@@ -51,7 +51,7 @@ futures-timer.workspace = true
static_init = "1.0.3"
-#[dev-dependencies]
+[dev-dependencies]
alloy = { workspace = true, features = [
"consensus",
"eips",
diff --git a/ethexe/cli/src/lib.rs b/ethexe/cli/src/lib.rs
new file mode 100644
index 00000000000..bf69dab184e
--- /dev/null
+++ b/ethexe/cli/src/lib.rs
@@ -0,0 +1,27 @@
+// This file is part of Gear.
+//
+// Copyright (C) 2024 Gear Technologies Inc.
+// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+
+pub mod args;
+pub mod chain_spec;
+pub mod config;
+pub mod metrics;
+pub mod params;
+pub mod service;
+
+#[cfg(test)]
+mod tests;
diff --git a/ethexe/cli/src/main.rs b/ethexe/cli/src/main.rs
index 3caaf6ca485..096c748bba8 100644
--- a/ethexe/cli/src/main.rs
+++ b/ethexe/cli/src/main.rs
@@ -16,24 +16,14 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
-mod args;
-mod chain_spec;
-mod config;
-mod metrics;
-mod params;
-mod service;
-
-#[cfg(test)]
-mod tests;
-
-use crate::{
+use anyhow::Context;
+use clap::Parser;
+use env_logger::Env;
+use ethexe_cli::{
args::{Args, ArgsOnConfig},
config::Config,
service::Service,
};
-use anyhow::Context;
-use clap::Parser;
-use env_logger::Env;
use std::{env, fs};
#[tokio::main]