diff --git a/substrate/client/cli/src/commands/export_chain_spec_cmd.rs b/substrate/client/cli/src/commands/export_chain_spec_cmd.rs
index ae92fdbf8742a16737e5a2daab751c61ad342372..992d8a6be02a67613f8707eb8645f8717e4a9a8e 100644
--- a/substrate/client/cli/src/commands/export_chain_spec_cmd.rs
+++ b/substrate/client/cli/src/commands/export_chain_spec_cmd.rs
@@ -16,7 +16,7 @@
 // You should have received a copy of the GNU General Public License
 // along with this program. If not, see <https://www.gnu.org/licenses/>.
 
-use crate::{error::Result, BuildSpecCmd, CliConfiguration, NodeKeyParams, SharedParams};
+use crate::{error::Result, CliConfiguration, SharedParams};
 use clap::Parser;
 use sc_service::{chain_ops, ChainSpec};
 use std::{