cli

Bump.sh CLI - Deploy your OpenAPI & AsyncAPI documentations from your CI

MIT License

Downloads
16.1K
Stars
32
Committers
6

Bot releases are visible (Hide)

cli - v2.8.1 (2024-04-25) Upgrades and a small fix Latest Release

Published by github-actions[bot] 6 months ago

On top of some dependency npm package upgrades (to remove the nasty security audit warnings) this release fixes a small bug.

πŸ› Allow overlay target to be the root document

The release fixes a bug in the newly introduced bump overlay command to allow overlay actions targeting the root of the document ($ in JSON path).

This should help for the kind of use-case where you want to add topics to your API document, e.g.:

overlay: 1.0.0
info:
  title: Adding topics to my API
  version: 0.0.1
actions:
  - target: "$"
    update:
      x-topics:
        - title: Getting started
          content: |
            This paragraph is added via an overlay because my **tech
            writers** team is different from my **developers** team
            and I want to publish introduction topics in our API
            documentation!

Have fun designing APIs 😊 ✨

cli - v2.8.0 (2024-03-19) Add new `overlay` command

Published by github-actions[bot] 7 months ago

πŸ†• (BETA) Add a new overlay command to apply OpenAPI overlays to an existing API document

This release adds a new command to the cli: bump overlay to apply OpenAPI overlays to an input API document. Usage is as simple as it gets. As the functionality is still pretty new (the Overlay specification has yet some questions to answer) consider this new command as a beta feature. Overlay behaviors might change in the future.

bump overlay api-document.yaml overlay-file.yaml > api-overlayed-document.yaml

The command will output a new generated API document with the overlay applied.

Note: you can also apply the overlay during the bump deploy command with the new --overlay flag:

bump deploy api-document.yaml --doc my-doc --token my-token --overlay overlay-file.yaml 
cli - v2.7.2 (2023-10-02) Minor fixes

Published by github-actions[bot] about 1 year ago

This is a tiny release without noticeable change but some fixes:

  • Fix an error message which was suggesting a wrong option
  • Fix node dependencies when the repo is used as a library
cli - v2.7.1 (2023-09-19) Fix a bug for deployments from a URL

Published by github-actions[bot] about 1 year ago

πŸ› Bugfix release

This release fixes a bug introduced in v2.7.0 which wouldn't allow the usage of the bump deploy command followed by a URL. Only files would be accepted as an argument.

Now, bump deploy --doc bump https://developers.bump.sh/source.json works as expected.

cli - v2.7.0 (2023-06-13) Deploy multiple documentation files to a hub all at once

Published by github-actions[bot] over 1 year ago

TL;DR

  • πŸ†• deploy multiple files at once on your Hub with bump deploy --hub my-hub DIRECTORY
  • 🧹 Minor improvements
  • πŸ†™ Internal refactoring & upgrades

Detailed changlog

deploy multiple files at once on your Hub

You can now provide a directory path instead of being limited to a single file path only.

Use the deploy command to easily target a hub: bump deploy --hub my-hub DIRECTORY .

It will allow you to deploy all the files within the specified directory to your desired my-hub hub on Bump.sh.

Want to select a list of files based on your file naming convention?

Use the --filename-pattern <pattern> flag. This pattern can include * wildcard special character, {slug} a filter which will extract your documentation slug from the filename, and any other fixed characters. A picture is worth a thousand words:

Here is an example where you would want to deploy the whole my/directory/ directory to your my-hub Hub with the following command.

bump deploy my/directory/ --hub my-hub --filename-pattern *-api-{slug}-service

Where the directory holds those files:

my/dir/
└─ private-api-users-service.yml
└─ partner-api-payments-service.yml
└─ public-api-contracts-service.yml

All of the three files shown above will be deployed to your Bump.sh Hub with users, payments and contracts being the respective documentation slugs.

Minor improvements

  • The live preview feature (bump preview --live my-definition-api.yml) will create a first preview straight away without waiting for a first change on the target file.
  • The CLI will warn you if you run an out-dated version. No excuses to keep some old dangling versions on your machine πŸ™‚

Internals & upgrades

  • We’ve refactored the deployment related code quite a bit to receive the new β€œMultiple files deploy” feature.
  • Upgrade to TypeScript 4.5
  • Some dependencies upgrades thanks to dependabot

Have fun designing APIs 😊 ✨

cli - v2.6.0 (2023-04-21) Add a parameter to fail diff command on breaking changes

Published by github-actions[bot] over 1 year ago

πŸ†• diff command accepts a new --fail-on-breaking argument

  • When using the bump diff command you can now pass the --fail-on-breaking argument in order for the command to return an error code if the diff contains a breaking change. This is especially useful in a CI environment when diff is computed for each pull request. Note: this argument is enabled by default if the environment variable CI=true is set.

πŸ†™ Partial support for the latest 2.6 release of AsyncAPI specification

Have fun designing APIs 😊 ✨

cli - v2.5.0 (2023-01-11) Add an expiration option for public diffs & support for AsyncAPI 2.5.0

Published by github-actions[bot] almost 2 years ago

πŸ†• diff command accepts a new --expire argument

  • When using the bump diff command without authentication (without --token and --doc arguments) you can now provide a custom expiration date (defaults to 1 day). E.g. bump diff --expires '2023-03-01' file-openapi-1.yml file-openapi-2.yml to create a public diff which will expire on the 1st of March 2023. You can also provide the keyword --expires never for your generated public diff to never expire.

πŸ†™ Partial support for the latest 2.5 release of AsyncAPI specification

  • AsyncAPI recently release their 2.5 version. Check out their blog post announcement: https://www.asyncapi.com/blog/release-notes-2.5.0
    With this new release of the Bump CLI we partially support the latest changes of the AsyncAPI spec.

  • Thanks to @dependabot, all the node dependencies we use are up-to-date as of today.

Continue to have fun designing APIs 😊 ✨

cli - v2.4.1 (2022-10-14) Fixing a bug for Windows

Published by github-actions[bot] about 2 years ago

πŸ› Bugfix release for windows CLI execution

This is a minor release to fix a bug in filesystem external references on Windows machines. Cf #360

cli - v2.4.0 (2022-05-19) Branch deployments & support for AsyncAPI 2.4

Published by github-actions[bot] over 2 years ago

πŸ†• diff and deploy commands accepts a new --branch argument

  • Both the diff & deploy commands will now accept a --branch argument so you can deploy new versions of your API reference in a separate branch. By default, when you don't use the argument all new versions are deployed to a default main branch.

    This new feature is useful when you want to keep multiple history available on your API documentation. For example, you might want to deploy all your newest API changes on a latest branch (with the new --branch latest argument), and when happy about the latest changes, you decide to release to the main default branch (by removing the --branch ... argument).

πŸ†™ Support for the latest 2.4 release of AsyncAPI specification

  • AsyncAPI recently release their 2.4 version. Check out their blog post announcement: https://www.asyncapi.com/blog/release-notes-2.4.0
    With this new release of the Bump CLI we partially support the latest changes of the AsyncAPI spec.

  • Thanks to @dependabot, all the node dependencies we use are up-to-date as of today.

Have fun designing APIs and our new branching mechanism 🌳 ✨

cli - v2.3.3 (2022-02-03) Support for AsyncAPI 2.3

Published by github-actions[bot] over 2 years ago

πŸ†™ Support for the latest 2.3 release of AsyncAPI specification

Have fun designing APIs ✨

cli - v2.3.2 (2022-01-20) Allow public `bump diff` command

Published by github-actions[bot] over 2 years ago

πŸ†• diff command can now be called unauthenticated

  • The bump diff command can be called without the --doc (and token) flags so you can now diff any two OpenAPI or AsyncAPI definitions
cli - v2.3.1 (2022-01-12) Add new format outputs for the `bump diff` command

Published by paulRbr almost 3 years ago

πŸ†• diff command now accepts a --format argument

  • The bump diff command now accepts a --format argument to be able to return three different format diff outputs:
    • text will return the current default format
    • markdown will return a markdown formatted diff
    • json will return a list of json objects with all the details of the diff
cli - v2.3.0 (2022-01-12) Internal changes to export core diff library

Published by github-actions[bot] almost 3 years ago

πŸ”§ Internal changes only

  • This release is mainly a refactoring to avoid using the commands/diff.ts Diff command class to be able to programmatically retrieve the diff result. Instead of calling bump.Diff.run([cli, params]) you'll now have to instantiate the lib and use the exported run function like so: new bump.Diff(config).run. See the run function signature for details.

πŸ†™ Upgrades

Thanks to @dependabot, all the node dependencies we use are up-to-date as of today.

cli - v2.2.6 (2021-10-18) bugfix release πŸ›

Published by github-actions[bot] about 3 years ago

πŸ› bugfix

  • Handle empty diffs properly when two files are given as input to the bump diff command. See #172 for details
cli - v2.2.5 (2021-10-12) Accept AsyncAPI files up to v2.2.0 of the specificiation

Published by github-actions[bot] about 3 years ago

πŸ†• Improved AsyncAPI support

cli - v2.2.4 (2021-10-08) Internal changes to fix programmatic usage of the CLI

Published by github-actions[bot] about 3 years ago

πŸ› πŸ”§ Internal changes only

  • fixes a bug introduced by previous release to be able to use this package programmatically (currently used by our Github-Action)
cli - v2.2.3 (2021-10-06) 'bump diff' can now compare two files

Published by github-actions[bot] about 3 years ago

πŸ†• Compute changelog between two versions of your API

  • This release brings a new possibility to the existing bump diff command which was released in v2.1.0.

    You can now compare any two different files together in the context of your existing Bump documentation. This means you will still need to be authenticated with your API on Bump to compare two given files or URLs. Here's how you would do it:

    $ bump diff openapi-file.yml next-openapi-file.yml --doc <doc_slug> --token <your_doc_token>
    * Let's compare the two given definition files... done
    
    Updated: POST /users
      Body attribute added: postcode
    

    In a future version, you will also be able to use the bump diff command without authentication so stay tuned!

✨

cli - v2.2.2 (2021-10-05) Internal changes preparing for two files `bump diff`

Published by github-actions[bot] about 3 years ago

πŸ”§ Internal changes only

  • This release brings the foundations to be able to compute a diff between two files. Please check v2.2.3 for the user facing changes.

πŸ†™ Upgrades

Thanks to @dependabot, all the node dependencies we use are up-to-date as of today.

cli - v2.2.1 (2021-09-23) Internal model update

Published by github-actions[bot] about 3 years ago

cli - v2.2.0 (2021-09-23) Live previews

Published by github-actions[bot] about 3 years ago

πŸ†• Features

  • A new --live flag was added to the bump preview command.

    This gives you the ability to stay focused on your API definition file (OpenAPI or AsyncAPI file) while seeing your Bump preview documentation page being updated as you change the file.

    No need for a specific text editor, or any extension, just use the bump CLI to preview your documentation live.

    Peek 23-09-2021 11-18

πŸ†™ Upgrades

Thanks to @dependabot, as usual, all the node dependencies we use are now up-to-date.

Package Rankings
Top 3.98% on Npmjs.org
Badges
Extracted from project README
Version Tests License
Related Projects