Crates.io | spl-token-cli |
lib.rs | spl-token-cli |
version | 5.1.0 |
source | src |
created_at | 2020-08-13 04:48:27.996742+00 |
updated_at | 2025-01-30 13:58:11.301039+00 |
description | SPL-Token Command-line Utility |
homepage | https://solana-program.com |
repository | https://github.com/solana-program/token-2022 |
max_upload_size | |
id | 276029 |
size | 780,918 |
A basic command-line for creating and using SPL Tokens. See https://spl.solana.com/token for more details
To build the CLI locally, simply run:
cargo build
The tests require locally built programs for Token, Token-2022, and Associated Token Account. To build these, you can run:
BUILD_DEPENDENT_PROGRAMS=1 cargo build
This method uses the local build.rs
file, which can be error-prone, so alternatively,
you can build the programs by running the following commands from this directory:
cargo build-sbf --manifest-path ../program/Cargo.toml
cargo build-sbf --manifest-path ../program-2022/Cargo.toml
cargo build-sbf --manifest-path ../../associated-token-account/program/Cargo.toml
After that, you can run the tests as any other Rust project:
cargo test
To run it locally you can do it like this:
cargo build --manifest-path token/cli/Cargo.toml
target/debug/spl-token <command>