Skip to content

Conversation

cjea
Copy link
Collaborator

@cjea cjea commented Oct 3, 2025

Description

Upload assets to a deployment. Instead of pushing an entire deployment (gram push), this command evolves an active deployment with a new asset.

Recommend hiding whitespace changes. Apologies for some messy diffs, because fields that used to be private are public now.

Implementation

Introduce deploy.Workflow to consolidate push, upload, and status commands.

Example

env GRAM_API_KEY="$(gram-api-key-dev)" \
  go run . upload \
  --api-url https://dev.getgram.ai \
  --project cj \
  --type openapiv3 \
  --location ~/Downloads/hasura_spec.yaml \
  --name "Hasura Rest Endpoints" \
  --slug rest-endpoints
image

Copy link

changeset-bot bot commented Oct 3, 2025

🦋 Changeset detected

Latest commit: 5706eed

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@gram/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Oct 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
gram Ready Ready Preview Comment Oct 7, 2025 8:14pm
gram-landing-redirect Ready Ready Preview Comment Oct 7, 2025 8:14pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
gram-docs Skipped Skipped Oct 7, 2025 8:14pm

@cjea cjea force-pushed the feat/gram-cli-upload branch from 87bbf24 to c489836 Compare October 3, 2025 22:36
@cjea cjea force-pushed the feat/gram-cli-upload branch from c489836 to 75334df Compare October 4, 2025 01:50
@cjea cjea force-pushed the feat/gram-cli-upload branch from 75334df to c762df4 Compare October 4, 2025 02:22
@cjea cjea force-pushed the feat/gram-cli-upload branch from c762df4 to 3df22c9 Compare October 4, 2025 02:28
@cjea cjea force-pushed the feat/gram-cli-upload branch from 3df22c9 to a5662d5 Compare October 4, 2025 02:31
@cjea cjea force-pushed the feat/gram-cli-upload branch from a5662d5 to 74180fb Compare October 4, 2025 02:35
@cjea cjea force-pushed the feat/gram-cli-upload branch from 74180fb to 2a4fbe3 Compare October 4, 2025 03:16
@cjea cjea force-pushed the feat/gram-cli-upload branch from 2a4fbe3 to c6354ad Compare October 4, 2025 03:23
@cjea cjea marked this pull request as ready for review October 6, 2025 18:04
@cjea cjea requested a review from a team as a code owner October 6, 2025 18:04
Copy link
Member

@simplesagar simplesagar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to show the output DX from gram upload ?

@cjea
Copy link
Collaborator Author

cjea commented Oct 6, 2025

Sure:

image

Comment on lines +136 to +139
if deployment == nil {
fmt.Println("{}")
return nil
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be an error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think so. It’s the state of having no active deployments, which happens after creating a new project, for example. I think it’s OK.

@vercel vercel bot temporarily deployed to Preview – gram-docs October 7, 2025 20:12 Inactive
@cjea cjea merged commit d6923b6 into main Oct 7, 2025
18 checks passed
@cjea cjea deleted the feat/gram-cli-upload branch October 7, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants