Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an equivalent of redoc-cli's --cdn flag in Redocly CLI? #2628

Open
linouk23 opened this issue Dec 5, 2024 · 0 comments
Open

Is there an equivalent of redoc-cli's --cdn flag in Redocly CLI? #2628

linouk23 opened this issue Dec 5, 2024 · 0 comments

Comments

@linouk23
Copy link

linouk23 commented Dec 5, 2024

Describe the problem to be solved
When we use the deprecated redoc-cli, we can see there was a --cdn flag:

➜  example-display-name git:(master) ✗ redoc-cli build --help
redoc-cli build <spec>

build definition into zero-dependency HTML-file [deprecated]

Positionals:
  spec  path or URL to your spec                                      [required]

Options:
      --help               Show help                                   [boolean]
...
      --cdn                Do not include ReDoc source code into html page, use
                           link to CDN instead        [boolean] [default: false]

We are in the process of migrating from redoc-cli to Redocly CLI by following https://redocly.com/docs/cli/guides/migrate-from-redoc-cli.

Before:

redoc-cli build <spec> --cdn

After:

redocly build-docs <spec> ?

Image

However, I can't find --cdn as a supported option in https://redocly.com/docs/cli/commands/build-docs#options:

Image

Describe the solution you'd like
What flag should we use instead of --cdn in the redocly build-docs command?

Thank you!

@linouk23 linouk23 changed the title Is there an equivalent of redoc-cli's dns flag in Redocly CLI? Is there an equivalent of redoc-cli's --cdn flag in Redocly CLI? Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant