NOTE: This repository is not actively maintained. These features are covered by the Aito Python SDK and CLI.
Collection of scripts and tools useful for Aito users.
Uploads a single ndjson file to an Aito environment. Executes a file upload flow. Requires jq command-line tool.
Example usage:
In the example we upload products to Aito.
-
Create a schema to the Aito database
curl -H "x-api-key: $API_KEY" -d@schema.json -X POST "https://my-aito-env.api.aito.ai/api/v1/schema"
See the example schema.json contents.
-
Run upload file script
./upload-file.sh products.ndjson https://my-aito-env.api.aito.ai
This would upload products.ndjson to a
products
table in https://my-aito-env.api.aito.ai. See the example products.ndjson contents.
Outputs all objects from Aito table to stdout as ndjson. Requires jq command-line tool. The table is paginated through with the Search endpoint.
Example usage:
export API_KEY=YOUR_KEY
copy-table.sh your-env-name table > table.ndjson