The Core CLI is a command-line interface for interacting with the Core Blockchain. It allows you to manage accounts, send transactions, deploy smart contracts, and perform other operations directly from your terminal. Designed to operate even in decentralized environments, it can connect to nodes offline using Lunaº Mesh technology.
Before installing the Core CLI, you can optionally install Rust if you plan to build from source or use custom Rust-based features.
-
Install Rust using
rustup
(recommended installer)curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Follow the on-screen instructions to complete the installation.
-
Verify the installation
rustc --version
If you don’t need to build from source, you can skip this step and directly install the Core CLI.
Install the Core CLI by running this command in your terminal:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/core-coin/core-cli/refs/heads/master/install)"
- Downloads the Core CLI binaries.
- Sets up environment variables for
core-cli
. - Provides additional setup instructions if required.
After installation, check if the Core CLI was installed successfully:
core-cli --version
You should see the installed version printed to the terminal.
If you'd like to build Core CLI from the source code:
-
Clone the repository:
git clone https://github.com/core-coin/core-cli.git cd core-cli
-
Build the project:
cargo build --release
-
Add the binary to your PATH:
export PATH="$PWD/target/release:$PATH"
-
Verify the installation:
core-cli --version
Once installed, you can start using the Core CLI to interact with the Core Blockchain:
-
Check account balance:
core-cli account balance <address>
-
Send transactions:
core-cli transaction send <params>
-
Interact with smart contracts:
core-cli contract call <params>
-
Offline operations via Lunaº Mesh: Use Core CLI with nodes that operate without an internet connection.
To see all available commands, run:
core-cli --help
Source code is available on GitHub: Core CLI GitHub Repository
Feel free to contribute by reporting issues or submitting pull requests.
The Core CLI is licensed under the CORE License.