Introducing the new Box CLI

Box · Beginner ·🤖 AI Agents & Automation ·3mo ago

Key Takeaways

The Box Command Line Interface (CLI) is a lightweight developer tool that allows humans and agents to securely interact with content in Box, enabling tasks such as scripting workflows, exploring content, and automating tasks with AI agents using tools like Claude Code.

Full Transcript

I am super excited to share the new Box CLI with you. We've engineered it to be even easier for people to use and their agents. My name is Carter Robasa. I'm the head of developer relations at Box. And let's dive right in. So, the first thing you need to do is get the CLI. And that's as easy as an npm install. I'm going to switch over to my terminal. Once you have the Box CLI, you need to authenticate. So, let's go ahead and do that. New in this version of the CLI are two authentication experiences. One allows you to log in as yourself using O and the other allows you to create a platform app to create customized scopes for what the Box CLI can and cannot do. But I'm going to go ahead and log in as myself. This is going to open up a browser which gives me uh clear ideas about what scopes I'm granting to the Box CLI. So, I'm going to go ahead and grant that access. And this screen tells me that I'm logged in. Awesome. All systems go. So, we can go ahead and test that by running pretty simple command. This is the users get mini API and it just tells me who I'm logged in as. But that's only half the fun. So, the Box CLI is incredibly powerful. People have been using it for years to automate all kinds of tasks. There's tons that you can do with it. But what's fun is how you can use it with agents. So, I'm going to go ahead and open Claude Code. So, I've got Claude Code opened. So, let's go ahead and give it like a really meaty task. In this case, I'm going to ask the Box CLI to upload all of the invoices that are in the current working directory to an invoices folder on Box. I'm going to run structured metadata extraction on all of those PDFs. Um, I've already defined a metadata template that tells Box what kind of metadata fields I'm looking for. I'm going to have uh that extraction happen on all of these PDFs and then I'm going to ask Cloud Code to then take those values and store them back uh back to Box on each of those individual files. So, we're going to go ahead and uh allow this to grind through a little bit and see what happens. All right. So, as you see, we've gone through all four of those PDFs and we've extracted this metadata. So now let's go over my Box account and make sure that this metadata was persisted back to the files themselves using the Box API. Okay, so you can see that Cloud Code created an invoices folder. All four of these invoices are here. So let's go ahead and just pick the first one. Awesome. And I'm going to go ahead and click on the metadata tab. And there you go. Invoice 7302075. Boom. It matches exactly what's in the PDF. So, this is really just scratching the surface uh of what uh you of developers and non-developers can do with the Box CLI. Uh you can download it today. Uh it's available at developers.box.com or our GitHub repo. And we just can't wait to see what you build and what you automate. Take care. Bye.

Original Description

Introducing the new Box Command Line Interface (CLI), a lightweight developer tool that makes it easier for both humans and agents to securely interact with the content in Box that powers their work. Whether you're scripting workflows, exploring your content from the terminal, or giving an AI agent the ability to retrieve files, apply metadata, or transform documents, the CLI becomes a simple and composable interface to the Box platform. Learn more at: https://developer.box.com/guides/cli
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

The Box CLI is a powerful tool that allows developers and non-developers to automate tasks and interact with content in Box, and can be used with AI agents like Claude Code to extract metadata and automate workflows. The Box CLI can be installed using npm and authenticated using O or platform apps. The CLI provides a range of features, including metadata extraction and Box API integration.

Key Takeaways
  1. Install the Box CLI using npm
  2. Authenticate with the Box CLI using O or platform apps
  3. Use the Box CLI to upload files to Box
  4. Use the Box CLI to extract metadata from files
  5. Use Claude Code to automate tasks with the Box CLI
  6. Integrate the Box CLI with the Box API
  7. Test and verify the results of automated tasks
💡 The Box CLI provides a powerful way to automate tasks and interact with content in Box, and can be used with AI agents to extract metadata and automate workflows.

Related Reads

📰
El mayor mito de la automatización con IA en España
Debunking the myth that AI automation will magically solve all problems in Spanish businesses, focusing on practical implementation instead
Dev.to AI
📰
An AI ran a web business for 100 days. Revenue: $0. Here's the full audit.
An AI-run web business failed to generate revenue despite significant activity, highlighting the importance of human oversight in business strategy
Dev.to AI
📰
the autonomous stack that runs real business processes 24/7 while i watch the board climb
Learn how to build an autonomous AI stack that runs real business processes 24/7 with minimal human intervention
Dev.to AI
📰
SDLC to ADLC
Learn how the Software Development Life Cycle (SDLC) is evolving into the Autonomous Development Life Cycle (ADLC) with the integration of AI agents
Dev.to AI
Up next
How to Build Custom AI Agents
AI Agents Podcast
Watch →