Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 13 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-nitro-cli-platforms:
name: 🧱 Publish Nitro CLI (${{ matrix.rid }}) to npm
name: 🧱 Publish Nitro CLI binary to npm
runs-on: ubuntu-latest
needs: [build-nitro-cli]
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -305,21 +305,14 @@ jobs:
id-token: write
strategy:
matrix:
include:
- rid: linux-x64
binary: nitro
- rid: linux-musl-x64
binary: nitro
- rid: linux-arm64
binary: nitro
- rid: osx-x64
binary: nitro
- rid: osx-arm64
binary: nitro
- rid: win-x64
binary: nitro.exe
- rid: win-x86
binary: nitro.exe
rid:
- linux-x64
- linux-musl-x64
- linux-arm64
- osx-x64
- osx-arm64
- win-x64
- win-x86

steps:
- name: 📦 Checkout
Expand Down Expand Up @@ -354,8 +347,8 @@ jobs:
*.tar.gz) tar -xzf "$archive" ;;
*.zip) unzip -q "$archive" ;;
esac
if [ "${{ matrix.binary }}" = "nitro" ]; then
chmod +x "${{ matrix.binary }}"
if [[ "${{ matrix.rid }}" != win-* ]]; then
chmod +x nitro
fi

- name: 🏷️ Set version
Expand All @@ -372,7 +365,8 @@ jobs:
run: |
npm publish "./chillicream-nitro-${{ matrix.rid }}-${GIT_TAG}.tgz" \
--access public \
--registry="${{ vars.NPM_REGISTRY_URL }}"
--registry="${{ vars.NPM_REGISTRY_URL }}" \
--tag latest
Comment on lines 365 to +369

- name: 📤 Upload tarball as artifact
uses: actions/upload-artifact@v7
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# @chillicream/nitro-linux-arm64

This package contains the platform-specific binary for `linux-arm64` (glibc).

Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# @chillicream/nitro-linux-musl-x64

This package contains the platform-specific binary for `linux-musl-x64`.

Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# @chillicream/nitro-linux-x64

This package contains the platform-specific binary for `linux-x64` (glibc).

Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# @chillicream/nitro-osx-arm64

This package contains the platform-specific binary for `osx-arm64`.

Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# @chillicream/nitro-osx-x64

This package contains the platform-specific binary for `osx-x64`.

Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# @chillicream/nitro-win-x64

This package contains the platform-specific binary for `win-x64`.

Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# @chillicream/nitro-win-x86

This package contains the platform-specific binary for `win-x86`.

Use [@chillicream/nitro](https://www.npmjs.com/package/@chillicream/nitro) to invoke the Nitro CLI.
51 changes: 49 additions & 2 deletions src/Nitro/CommandLine/src/npm/chillicream-nitro/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@
# @chillicream/nitro

A CLI to interact with [Nitro](https://chillicream.com/products/nitro).
The official CLI for ChilliCream's [Nitro](https://chillicream.com/products/nitro).

For a full list of commands either run `npx @chillicream/nitro --help` or see the [documentation](https://chillicream.com/docs/nitro/cli-commands/api-key).
## Usage

Run the CLI directly with your package manager of choice:

```bash
# npm
npx @chillicream/nitro@latest --help

# yarn
yarn dlx @chillicream/nitro@latest --help

# pnpm
pnpm dlx @chillicream/nitro@latest --help
```

## GitHub Actions

If you want to invoke the CLI from a GitHub Actions workflow, use our official actions instead of installing the CLI manually:

### Schema

- [Nitro Schema Publish](https://github.com/marketplace/actions/nitro-schema-publish)
- [Nitro Schema Upload](https://github.com/marketplace/actions/nitro-schema-upload)
- [Nitro Schema Validate](https://github.com/marketplace/actions/nitro-schema-validate)

### Client

- [Nitro Client Publish](https://github.com/marketplace/actions/nitro-client-publish)
- [Nitro Client Upload](https://github.com/marketplace/actions/nitro-client-upload)
- [Nitro Client Validate](https://github.com/marketplace/actions/nitro-client-validate)

### Fusion

- [Nitro Fusion Publish](https://github.com/marketplace/actions/nitro-fusion-publish)
- [Nitro Fusion Upload](https://github.com/marketplace/actions/nitro-fusion-upload)
- [Nitro Fusion Validate](https://github.com/marketplace/actions/nitro-fusion-validate)

### MCP

- [Nitro MCP Publish](https://github.com/marketplace/actions/nitro-mcp-publish)
- [Nitro MCP Upload](https://github.com/marketplace/actions/nitro-mcp-upload)
- [Nitro MCP Validate](https://github.com/marketplace/actions/nitro-mcp-validate)

### OpenAPI

- [Nitro OpenAPI Publish](https://github.com/marketplace/actions/nitro-openapi-publish)
- [Nitro OpenAPI Upload](https://github.com/marketplace/actions/nitro-openapi-upload)
- [Nitro OpenAPI Validate](https://github.com/marketplace/actions/nitro-openapi-validate)
Loading