This guide helps you migrate your ReadMe CLI (rdme
) setup to the latest version and prepare for future versions. Choose your migration path based on whether you're using ReadMe Refactored.
- If your project is using ReadMe Refactored, use
rdme@v10
and beyond. - If your project is not yet using ReadMe Refactored, use
rdme@v9
. Thev9
channel will continue to be maintained while we focus on making sure that everybody can upgrade their ReadMe projects to ReadMe Refactored.
- Migrating to
rdme@10
- Migrating to
rdme@9
- Migrating to
rdme@8
- Version Compatibility Matrix
- Need Help?
Note
If you're using ReadMe Refactored, you'll want to use rdme@10
or later. The v10
migration guide can be found here.
This release adds a few features that make it even easier to get started with rdme
:
-
Enhanced Command Documentation
- Complete command reference in the
documentation/commands
directory - Detailed usage examples and parameter descriptions
- Structured by command category for intuitive navigation
- Complete command reference in the
-
Improved CLI Experience
- Overhauled help screens with detailed examples to improve readability and ease of use
- Set up CLI autocompletions with the
autocomplete
command - Smart command discovery that helps catch and correct typos
- Redesigned error messages with clear resolution steps
Note
rdme@9
only works with ReadMe projects that are not using ReadMe Refactored. If you are using ReadMe Refactored, you'll want to use rdme@10
.
To install this version of the rdme
CLI globally, run the following command:
npm install -g rdme@9
More installation options can be found in our docs.
If you're using the rdme
GitHub Action, update your GitHub Actions workflow file so your rdme
usage uses the v9
reference like so:
- uses: readmeio/rdme@v9
with:
rdme: openapi validate petstore.json
-
Verify your runtime
- For CLI users, make sure your Node.js version is up-to-date. The minimum required Node.js version for
rdme@9
is v20.10.0. - The
rdme
release process is no longer publishing Docker images and the GitHub Action is now a JavaScript action. This change should not affect any GitHub Actions users.
- For CLI users, make sure your Node.js version is up-to-date. The minimum required Node.js version for
-
Topic separator changes
- The topic separator (i.e., what separates a command from its subcommand) has changed from a colon to a space by default. For example,
rdme openapi:validate
is nowrdme openapi validate
. - The colon topic separator will continue to be supported so there is no need to change any existing commands, but all documentation and help screens will reflect the space topic separator.
- The topic separator (i.e., what separates a command from its subcommand) has changed from a colon to a space by default. For example,
-
Command replacements
- Replace
swagger
→openapi
- Replace
validate
→openapi validate
- Remove:
docs:edit
,oas
- Replace
-
Version flag updates
The CLI flags on the
versions create
andversions update
commands now maintain parity with our API flags. The--isPublic
flag has been removed in favor of a new flag called--hidden
, which is the inverse of--isPublic
.Before
rdme versions:create 1.0.1 --isPublic true
After
rdme versions create 1.0.1 --hidden false
-
Deprecated commands
The following commands (and their subcommands) will be removed in
rdme@10
:categories
custompages
docs
(and itsguides
alias)versions
open
The
openapi
command is deprecated and will be replaced inrdme@10
by a command with a simpler flag setup based on community feedback. -
Verify any scripts that utilize raw CLI outputs
- The underlying architecture for the CLI has been rewritten with
oclif
, so some command outputs and error messages may look different. - With the exception of the
--raw
flag onopenapi
, we recommend relying on CLI exit codes in your workflows rather than raw command outputs.
- The underlying architecture for the CLI has been rewritten with
Please see the [email protected]
release notes.
Feature | v8 |
v9 |
v10 |
---|---|---|---|
Actively Maintained? | ❌ | ✅ | ✅ |
Support for ReadMe Refactored* | ❌ | ❌ | ✅ |
Supports Bi-Directional Sync | ❌ | ❌ | ✅ |
Support for Legacy Projects (i.e., not yet migrated to ReadMe Refactored) | ✅ | ✅ | ❌ |
Node.js Requirements | >=14 |
>=20.10.0 |
>=20.10.0 |
*If you uploaded an API definition prior to migrating your project to ReadMe Refactored, any existing workflows for syncing these files that use a legacy rdme
version (i.e., v9
or earlier) should continue to work, even after migrating. For new workflows, we recommend following this migration guide and upgrading to the latest version.
If you notice any issues or disruptions to your workflow during migration, we're here to help! Feel free to...
- Open up an issue on GitHub 🆘
- Get in touch with us at [email protected] 📬
- Say hi on Slack 👋