Rust Airtable Utility (RAU) Documentation
Last updated
Last updated
Welcome to the Rust Airtable Utility (RAU) documentation. RAU is a command-line utility written in Rust that allows you to interact with the Airtable API. This utility enables you to query, create, and update records in your Airtable bases seamlessly. Below is the detailed documentation for using RAU effectively.
Query Records: Retrieve records and their field values by record ID or query parameters.
Create Records: Generate new records with specified field values.
Update Records: Modify existing records by updating field values.
Cache Management: Locally cache available fields for faster subsequent requests.
Schema and Fields Output: Display the table schema or available fields for reference.
Recent Records: List the 100 most recent record IDs and their names for quick access.
Configuration: Easily manage multiple Airtable bases and tables through a config.toml
file.
Secure API Key Handling: Store your API key securely using environment variables.
Install Rust: If you haven't installed Rust yet, you can download it from here.
Clone the Repository:
Navigate to the Project Directory:
Build the Project:
Create a Configuration File (config.toml
): Place a config.toml
file in the root directory of your project.
Define Airtable Configurations: In config.toml
, specify your Airtable bases and tables as shown below:
Set Your API Key: Add your Airtable API key to config.toml
or use an environment variable:
Directly in config.toml
:
Environment Variable:
To use RAU, follow the command template below:
Arguments:
<config_name>
: The name of the configuration from your config.toml
file.
[record_id]
(optional): The ID of the record to interact with.
[fields]
(optional): A list of fields to update or query, specified in key=value format.
Options:
-s, --schema
: Output the table schema.
-f, --fields
: Output the available fields for the table.
-r, --recent
: Output the 100 most recent record IDs and their names.
Examples:
Query all fields of a record:
Query specific fields of a record:
Update a record:
Create a new record:
Output the schema:
Output available fields:
Output recent records:
RAU is a powerful CLI tool that simplifies your interaction with Airtable. For advanced usage and further customization, refer to the source code and additional documentation provided in the repository.
Releases:
The latest release for the RAU project is version 0.1.0. You can find more details about this release on the Releases page.
Dependencies:
The RAU project has various dependencies, such as reqwest, serde, clap, config, tokio, rustyline, lazy_static, and more. These dependencies help in the utility's functionality and development.