You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 🧰 Changes
a few final touchups before we ship v9 🚀
- [x] adds a deprecation notice to `rdme openapi`
- [x] removes the usage section from our docs in favor of a quick start
- [x] improves the documentation for our `--key` and `--version` flags
- [x] removes all `v10` migration guide language for now and adds a
placeholder. i have a separate PR
([#1107](#1107)) that adds that
language back when we're ready. i figured i'd chunk this out so we can
ship v9 without having to finalize the new `rdme openapi` command
replacement.
## 🧬 QA & Testing
Do these doc changes look sound?
---
BREAKING CHANGE: `rdme openapi` is deprecated and will be replaced in
`rdme@10` by a command with a simpler flag setup based on community
feedback.
Install the CLI ([see here for more setup options](#setup)):
50
+
51
+
```sh
52
+
npm install -g rdme
53
+
```
54
+
55
+
Validate an OpenAPI file in your working directory or any subdirectories ([see here for all command topics](#command-topics)):
56
+
57
+
```sh
58
+
rdme openapi validate
59
+
```
60
+
61
+
Every command has a help page, which you can access in [our docs](./documentation/commands) or via the CLI:
62
+
63
+
```sh
64
+
rdme openapi validate --help
65
+
```
66
+
67
+
To view the current version of `rdme` (helpful for troubleshooting and bug reports):
68
+
69
+
```sh
70
+
rdme --version
71
+
```
72
+
47
73
# CLI Configuration
48
74
49
75
## Setup
@@ -119,7 +145,7 @@ rdme openapi
119
145
> [!NOTE]
120
146
> For a full GitHub Workflow file example and additional information on GitHub Actions usage, check out [our docs](https://docs.readme.com/docs/rdme#github-actions-usage).
121
147
122
-
For usage in [GitHub Actions](https://docs.github.com/actions), you can create a new GitHub Actions workflow file by including the `--github` flag with the command you wish to run in GitHub Actions. For example:
148
+
For usage in [GitHub Actions](https://docs.github.com/actions), you can create a new GitHub Actions workflow file by installing the CLI on your local machine and running the the command you wish to run in GitHub Actions, along with the `--github` flag. For example:
123
149
124
150
```sh
125
151
rdme openapi --github
@@ -129,39 +155,6 @@ This will run through the `openapi` command, ask you a few quick questions, and
129
155
130
156
You can see examples featuring the latest version in [our docs](https://docs.readme.com/docs/rdme#github-actions-examples). We recommend [configuring Dependabot to keep your actions up-to-date](https://docs.github.com/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot).
131
157
132
-
# Usage
133
-
134
-
<!--
135
-
This section is autogenerated using `oclif` and is regenerated with every release.
136
-
137
-
If you wish to preview these changes locally, run the following:
138
-
139
-
```
140
-
npm run build && npm run build:docs
141
-
```
142
-
-->
143
-
144
-
<!-- prettier-ignore-start -->
145
-
<!-- usage -->
146
-
```sh-session
147
-
$ npm install -g rdme
148
-
$ rdme COMMAND
149
-
running command...
150
-
$ rdme (--version)
151
-
rdme/9.0.0-next.35 linux-x64 node-v20.18.1
152
-
$ rdme --help [COMMAND]
153
-
USAGE
154
-
$ rdme COMMAND
155
-
...
156
-
```
157
-
<!-- usagestop -->
158
-
<!-- prettier-ignore-end -->
159
-
160
-
## Common `rdme` Options
161
-
162
-
-`--key <string>`: The API key associated with your ReadMe project. Note that most of the commands below require API key authentication, even though the `--key` flag is omitted from the examples. See the [Authentication](#authentication) section above for more information.
163
-
-`--version <string>`: Your project version. See [our docs](https://docs.readme.com/docs/versions) for more information.
164
-
165
158
<!--
166
159
This section is autogenerated using `oclif` and is regenerated with every release.
Get all categories associated to your project version:
27
28
28
29
$ rdme categories --version={project-version}
30
+
31
+
FLAG DESCRIPTIONS
32
+
--key=<value>
33
+
34
+
An API key for your ReadMe project. Note that API authentication is required despite being omitted from the example
35
+
usage. See our docs for more information: https://github.com/readmeio/rdme/tree/v9#authentication
36
+
37
+
ReadMe project API key
38
+
39
+
--version=<value> ReadMe project version
40
+
41
+
Your ReadMe project version. If running command in a CI environment and this option is not passed, the main project
42
+
version will be used. See our docs for more information: https://docs.readme.com/main/docs/versions
29
43
```
30
44
31
45
## `rdme categories create TITLE`
@@ -42,11 +56,12 @@ ARGUMENTS
42
56
FLAGS
43
57
--categoryType=<option> (required) Category type
44
58
<options: guide|reference>
45
-
--key=<value> (required) ReadMe Project API key
59
+
--key=<value> (required) An API key for your ReadMe project. Note that API authentication is required
60
+
despite being omitted from the example usage. See our docs for more information:
An API key for your ReadMe project. Note that API authentication is required despite being omitted from the example
84
+
usage. See our docs for more information: https://github.com/readmeio/rdme/tree/v9#authentication
85
+
86
+
ReadMe project API key
87
+
88
+
--version=<value> ReadMe project version
89
+
90
+
Your ReadMe project version. If running command in a CI environment and this option is not passed, the main project
91
+
version will be used. See our docs for more information: https://docs.readme.com/main/docs/versions
An API key for your ReadMe project. Note that API authentication is required despite being omitted from the example
48
+
usage. See our docs for more information: https://github.com/readmeio/rdme/tree/v9#authentication
An API key for your ReadMe project. Note that API authentication is required despite being omitted from the example
48
+
usage. See our docs for more information: https://github.com/readmeio/rdme/tree/v9#authentication
An API key for your ReadMe project. Note that API authentication is required despite being omitted from the example
53
+
usage. See our docs for more information: https://github.com/readmeio/rdme/tree/v9#authentication
54
+
55
+
ReadMe project API key
56
+
57
+
--version=<value> ReadMe project version
58
+
59
+
Your ReadMe project version. If running command in a CI environment and this option is not passed, the main project
60
+
version will be used. See our docs for more information: https://docs.readme.com/main/docs/versions
47
61
```
48
62
49
63
## `rdme docs prune FOLDER`
@@ -61,9 +75,10 @@ FLAGS
61
75
--confirm Bypass the confirmation prompt. Useful for CI environments.
62
76
--dryRun Runs the command without deleting any docs in ReadMe. Useful for debugging.
63
77
--github Create a new GitHub Actions workflow for this command.
64
-
--key=<value> (required) ReadMe Project API key
65
-
--version=<value> Project version. If running command in a CI environment and this option is not passed, the main
66
-
project version will be used.
78
+
--key=<value> (required) An API key for your ReadMe project. Note that API authentication is required despite
79
+
being omitted from the example usage. See our docs for more information:
An API key for your ReadMe project. Note that API authentication is required despite being omitted from the example
102
+
usage. See our docs for more information: https://github.com/readmeio/rdme/tree/v9#authentication
103
+
104
+
ReadMe project API key
105
+
106
+
--version=<value> ReadMe project version
107
+
108
+
Your ReadMe project version. If running command in a CI environment and this option is not passed, the main project
109
+
version will be used. See our docs for more information: https://docs.readme.com/main/docs/versions
An API key for your ReadMe project. Note that API authentication is required despite being omitted from the example
105
+
usage. See our docs for more information: https://github.com/readmeio/rdme/tree/v9#authentication
106
+
107
+
ReadMe project API key
108
+
101
109
--update Bypasses the create/update prompt and automatically updates an existing API definition in ReadMe.
102
110
103
111
Bypasses the create/update prompt and automatically updates an existing API definition in ReadMe. Note that this
104
112
flag only works if there's only one API definition associated with the current version.
113
+
114
+
--version=<value> ReadMe project version
115
+
116
+
Your ReadMe project version. If running command in a CI environment and this option is not passed, the main project
117
+
version will be used. See our docs for more information: https://docs.readme.com/main/docs/versions
0 commit comments