Introducing the TinaCloud CLI
By Brook Jeynes

Create and configure TinaCloud projects from your terminal, or hand the setup
to your AI coding agent. The TinaCMS team built the TinaCloud CLI (tinacloud)
so you can check project status and update site URLs without opening the
dashboard. Use @tinacms/cli for local TinaCMS development, and tinacloud
for your TinaCloud organizations and projects.
Get started
You can download the latest release for your operating system from the GitHub releases page or, if you're on macOS or Linux, you can run the command below to install it automatically.
curl -fsSL https://github.com/tinacms/tinacloud-cli/raw/main/scripts/install.sh | bash
Once installed, sign in via your browser and check your session:
tinacloud auth logintinacloud auth status
Manage your projects from the terminal
The CLI can list your organizations and projects, create projects from GitHub repositories, show project status and manage a project's site URLS and protected branches.
For example:
tinacloud org listtinacloud project list --org-id <organization-id>
In addition to being able to read from TinaCloud, the CLI is also able to create projects and update their settings.
tinacloud project create --org-id <organization-id> --name my-site --repo-url https://github.com/org/my-sitetinacloud project update site-url add --url https://staging.example.com
If you're working in an existing local TinaCMS project, run tinacloud
configure from the project directory. It will try to find the matching
TinaCloud project and save the organization and project IDs in
tina/tinacloud.json, so later commands don't need them passed each time. To
target a different project, pass --org-id and --project-id.
tinacloud configuretinacloud project status
Use the CLI with your AI coding agent
Most commands accept a --json flag, so AI coding agents can read the output
and act on it. For example, you can ask your agent to create a TinaCloud
project for a local TinaCMS project. It can check that you're signed in, ask
which organization to use, create the project and then run tinacloud
configure so later commands use the saved IDs.
You can use the --json flag for structured output that agents and scripts can
parse. For interactive commands such as configure and project create, you
can pass --no-input to run without prompts, supplying the required values as
flags instead.
You could try a prompt like:
Create a TinaCloud project for this local TinaCMS project using the TinaCloudCLI. Check that I'm signed in, ask me which organization to use, and confirmthe project details before creating it.
You could also ask your agent to find projects that are missing a staging site
URL and add one with tinacloud project update site-url add.
Try it out
See the TinaCloud CLI
documentation for every command
and more examples, or run tinacloud --help from your terminal.
Have a use case or a feature request? Share it with us on Discord or in GitHub Discussions.