Home Explore Blog CI



nushell

commands/docs/bytes_build.md
d2095a449537cf292a0fde94ded004f0d0a567e324c6db0e000000030000044a
---
title: bytes build
categories: |
  bytes
version: 0.104.0
bytes: |
  Create bytes from the arguments.
usage: |
  Create bytes from the arguments.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `bytes build` for [bytes](/commands/categories/bytes.md)

<div class='command-title'>Create bytes from the arguments.</div>

## Signature

```> bytes build {flags} ...rest```

## Parameters

 -  `...rest`: List of bytes.


## Input/output types:

| input   | output |
| ------- | ------ |
| nothing | binary |
## Examples

Builds binary data from 0x[01 02], 0x[03], 0x[04]
```nu
> bytes build 0x[01 02] 0x[03] 0x[04]
Length: 4 (0x4) bytes | printable whitespace ascii_other non_ascii
00000000:   01 02 03 04                                          ••••

```

Builds binary data from byte numbers
```nu
> bytes build 255 254 253 252
Length: 4 (0x4) bytes | printable whitespace ascii_other non_ascii
00000000:   ff fe fd fc                                          ××××

```

Chunks
52b5d943 (1st chunk of `commands/docs/bytes_build.md`)
Title: bytes build: Create binary data from arguments in Nushell
Summary
The `bytes build` command in Nushell allows you to create binary data (bytes) by combining a list of byte values provided as arguments. These arguments can be in the form of byte arrays (e.g., `0x[01 02]`) or byte numbers (e.g., `255`). The command outputs a single binary value representing the concatenation of the input bytes.