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

feat: Add wrangler pages project list #757

Merged

Conversation

sidharthachatterjee
Copy link
Contributor

@sidharthachatterjee sidharthachatterjee commented Apr 4, 2022

This adds a wrangler pages project list command that lets you list your Cloudflare Pages for an account.

It reuses the requireAuth helper (which I've moved into utils) to render an account selector.

Here is what it renders:

Screenshot 2022-04-04 at 16 40 08

@changeset-bot
Copy link

changeset-bot bot commented Apr 4, 2022

🦋 Changeset detected

Latest commit: 659fd5a

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

This PR includes changesets to release 1 package
Name Type
wrangler Patch

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

@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2022

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2095938204/npm-package-wrangler-757

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/757/npm-package-wrangler-757

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/2095938204/npm-package-wrangler-757 dev path/to/script.js

Copy link
Contributor

@threepointone threepointone left a comment

Choose a reason for hiding this comment

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

Could you add some tests as well?

packages/wrangler/src/utils.ts Outdated Show resolved Hide resolved
@petebacondarwin petebacondarwin added the pages Relating to Pages label Apr 4, 2022
@GregBrimble
Copy link
Contributor

Can we get pagination or search on this project list as well? Quite possible people have more than whatever we serve by the default.

packages/wrangler/src/__tests__/pages.test.ts Outdated Show resolved Hide resolved
packages/wrangler/src/__tests__/pages.test.ts Outdated Show resolved Hide resolved
@sidharthachatterjee sidharthachatterjee merged commit 13e57cd into cloudflare:main Apr 5, 2022
@github-actions github-actions bot mentioned this pull request Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pages Relating to Pages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants