---
title: "💭 sqlite-utils command-line tool - sqlite-utils"
description: "!https://sqlite-utils.datasette.io/en/stable/cli.html#inserting-json-data"
date: 2023-07-28
published: true
tags:
  - sqlite
  - data
  - database
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://sqlite-utils.datasette.io/en/stable/cli.html#inserting-json-data" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-content">
      <div class="embed-card-title">sqlite-utils command-line tool - sqlite-utils</div>
      <div class="embed-card-meta">sqlite-utils.datasette.io</div>
    </div>
  </a>
</div>


insert a json array directly into into sqlite with sqlite-utils.

``` bash
echo '{"name": "Cleo", "age": 4}' | sqlite-utils insert dogs.db dogs -
```



!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
