2022-02-14 02:22:51 +00:00
|
|
|
---
|
|
|
|
title: save
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
2019-11-29 17:15:51 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
Save a file.
|
2019-11-29 17:15:51 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
## Signature
|
2019-11-29 17:15:51 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
```> save (filename) --raw```
|
2019-11-29 17:15:51 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
## Parameters
|
2019-11-29 17:15:51 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
- `filename`: the filename to use
|
2022-02-21 17:26:00 +00:00
|
|
|
- `--raw`: save file as raw binary
|
2019-11-30 20:07:43 +00:00
|
|
|
|
2022-02-21 17:26:00 +00:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
Save a string to foo.txt in current directory
|
|
|
|
```shell
|
|
|
|
> echo 'save me' | save foo.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
Save a record to foo.json in current directory
|
|
|
|
```shell
|
|
|
|
> echo { a: 1, b: 2 } | save foo.json
|
|
|
|
```
|