Skip to content

Deploy schema to new base #14

@Squix

Description

@Squix

Overview

Add a new deploy command that takes a valid base schema as input and create the base populated with tables and fields on the Airtable account linked to the supplied PAT.

Motivation

Currently, when using the tool to archive bases, it can be a bit abstract to visualize and understand the structure of the base by reading the schema file. This deploy command would :

  • allow users to quickly spin-up an empty base in their account to visualize their schema ;
  • allow quick duplication of an existing structure
  • allow quick recovery from archive/backup

Proposed implementation

New deploy command

./airtable-devops deploy --schema ./dev/schema.json --name "my_new_base"

Technical requirements

  • Add the deploy command
  • Make sure it handles every response from the createBase API endpoint (permissions issues)
  • Update docs

Questions to resolve

  1. Will the information in the current schema structure be enough to create the complete base ?
  2. It seems the API can't create computed fields, like rollups ? What to do then ? Explain to the user how to create them ?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions