Crates.io | soon-migrate |
lib.rs | soon-migrate |
version | 0.1.2 |
source | src |
created_at | 2024-11-07 19:55:38.291998 |
updated_at | 2024-11-07 20:03:38.38586 |
description | CLI tool to migrate Solana Anchor projects to the SOON Network. |
homepage | https://github.com/akshatcoder-hash/soon-migrate |
repository | https://github.com/akshatcoder-hash/soon-migrate |
max_upload_size | |
id | 1440085 |
size | 34,146 |
🚀 soon-migrate
is a CLI tool that helps developers migrate their Solana Anchor projects to the SOON Network. It modifies the Anchor.toml
configuration file and updates the cluster RPC URL to point to the SOON Network, among other tasks. This tool is designed to simplify the process of upgrading and migrating existing Solana Anchor projects.
Anchor.toml
file to migrate from standard Solana clusters to SOON Network.Anchor.toml
to ensure you can restore it if needed.You can install soon-migrate
using Cargo:
cargo install soon-migrate
Navigate to the root directory of your Anchor project and run:
soon-migrate
This will migrate your project by modifying Anchor.toml
and updating the cluster RPC URL to the SOON Network. The tool will also create a backup (Anchor.toml.bak
) before making any changes.
You can specify the path to your Anchor project explicitly:
soon-migrate /path/to/your/anchor-project
If you want to preview the changes that will be made without modifying the actual files, use the --dry-run
flag:
soon-migrate --dry-run
This will print out the changes that would be made to Anchor.toml
without making any modifications.
For more detailed logging about the migration process, use the --verbose
flag:
soon-migrate --verbose
If you need to revert the changes made by soon-migrate
, you can restore the backup using the --restore
flag:
soon-migrate --restore
soon-migrate
soon-migrate /path/to/project
soon-migrate --dry-run
soon-migrate --verbose
soon-migrate --restore
Run a Dry Run to see what changes will be made:
soon-migrate --dry-run
Run the Actual Migration after reviewing the dry run output:
soon-migrate
Verify the updated Anchor.toml
and run your project's tests.
If something went wrong, restore from the backup:
soon-migrate --restore
soon-migrate
performs the following tasks:
Anchor.toml
and Cargo.toml
.Anchor.toml
before making changes.Anchor.toml
to point to the SOON Network:
https://rpc.devnet.soo.network/rpc
Contributions are welcome! Please feel free to submit a Pull Request or open an Issue for suggestions, improvements, or bug reports.
Clone the Repository:
git clone https://github.com/akshatcoder-hash/soon-migrate.git
cd soon-migrate
Build the Project:
cargo build
Run Tests:
cargo test
Licensed under the MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT).
If you have any questions or suggestions, feel free to reach out!
Give soon-migrate
a ⭐ on GitHub if you find it useful!