Skip to content

docs: replace deprecated init subcommand with new in README#1

Open
abhicris wants to merge 1 commit intocryptuon:mainfrom
abhicris:contrib-bot/2026-04-21-solscript
Open

docs: replace deprecated init subcommand with new in README#1
abhicris wants to merge 1 commit intocryptuon:mainfrom
abhicris:contrib-bot/2026-04-21-solscript

Conversation

@abhicris
Copy link
Copy Markdown

Why

The CLI marks init as deprecated in favour of new:

// crates/solscript-cli/src/main.rs
/// Initialize a new SolScript project (deprecated: use 'new')
Init { ... }

and at runtime prints:

Note: 'init' is deprecated. Use 'solscript new' instead.

But README.md still teaches solscript init my-token in both Quick Start and CLI Reference. New users following the README hit a deprecation notice on their first command.

This swaps the two occurrences to solscript new so the front-door docs match the non-deprecated path. No behaviour change (init internally calls new_project(...) anyway).

Diff: 2 insertions / 2 deletions, README only.


— Part of open-source frontier Rust work from kcolbchain.com · maintained by Abhishek Krishna.

The CLI marks 'init' as deprecated and prints
'Note: init is deprecated. Use solscript new instead.' when invoked.
Update the Quick Start and CLI Reference sections so the README stops
promoting the deprecated path to new users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant