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

create clarinet platform commands #1498

Closed
ryanwaits opened this issue Jul 8, 2024 · 2 comments
Closed

create clarinet platform commands #1498

ryanwaits opened this issue Jul 8, 2024 · 2 comments

Comments

@ryanwaits
Copy link
Contributor

I'm not sure if this has been discussed in other mediums or channels, but I've always loved the idea of a tighter integration between the clarinet CLI and the Hiro Platform. This came to mind after going through the guide on how to connect your local editor to the platform. Similar to the Heroku CLI, we could simplify this approach with the following:

  • clarinet platform login
  • clarinet platform clone <project-id>
  • clarinet platform deploy <project-id>

Add clarinet platform login

This command would handle logging into the Hiro Platform, storing user credentials, and setting up the environment for subsequent CLI commands.

Add clarinet platform clone <project-id> command

This command clones a hosted project from the Hiro Platform into the local environment, analogous to git clone.

  • Retrieves the project from the Hiro Platform using the provided URL.
  • Generates/uses an existing SSH key and registers it with the Hiro Platform.
  • Configures necessary settings for future interactions.
  • Clones the project into the local directory.

Other familiar git commands like fetch, pull, can also be implemented

Add clarinet platform deploy <project-id> command

Initiate the deployment of the project on the Hiro Platform. Available flags could include --network

@hugocaillard
Copy link
Collaborator

Yes! It's been discussed, but maybe not on public channels.

Some thoughts:

  • we could potentially avoid the platform keyword, just do clarinet login
  • not sure clone is something we want, imo it'd be great if the Platform projects were managed with git/github. More like what Vercel does
  • deploy requires some thoughts, because it overlaps with clarinet deployments
    • starting a devnet in the cloud would be amazing (something like clarinet devnet start --online)

Maybe we should move the discussion to Notion or Github Discussion while we are in the design phase.

Note: For an other project (more details soon), we'll soon have a need for clarinet login and api key management, so that's definitely something we want to put in motion soon

@ryanwaits
Copy link
Contributor Author

good idea, moved it over to discussions #1501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants