Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File download support #1262

Open
gugu opened this issue Oct 15, 2024 · 0 comments
Open

File download support #1262

gugu opened this issue Oct 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@gugu
Copy link

gugu commented Oct 15, 2024

Problem

I've generated a tax report and need to download it using stripe CLI

Right now I'm getting this response:

> stripe files retrieve file_1
{
  "id": "file_1",
  "object": "file",
  "created": 12345,
  "expires_at": 12345,
  "filename": "frr_1.csv",
  "links": {
    "object": "list",
    "data": [],
    "has_more": false,
    "url": "/v1/file_links?file=file_1"
  },
  "purpose": "finance_report_run",
  "size": 27206,
  "title": "FinanceReportRun frr_1",
  "type": "csv",
  "url": "https://files.stripe.com/v1/files/file_1/contents"
}

But in order to download a file I need to send a request to files.stripe.com and I can not do this using stripe cli, I need use curl for that

Feature

Having a command stripe file download / stripe download would be great

Examples

stripe files download file_1 > tax_report.csv
@gugu gugu added the enhancement New feature or request label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant