Go back

Improved Space CLI Experience

March 7, 2023

Changelog

Over the past few weeks, we have received a lot of feedback and bug reports from the community around the Space CLI. We have been working hard to address these issues and improve the overall experience of using the Space CLI in the last few days and weeks and are excited to release a new version.

To upgrade run the following command:

Terminal window
space version upgrade

If you haven’t installed the CLI yet, you can do so by following the instructions in our docs.

Updated space push command

We have updated the space push command to now follow the entire process of not just pushing and building your app, but also updating your Builder instance with the latest revision. This means you’ll now have more insight into the process of updating your Builder instance with the latest changes. Once the build and update is complete it will print your Builder instance’s URL to the console and you can optionally even open it in your browser automatically by passing the --open flag:

Terminal window
$ space push --open
Validating Spacefile...
Micro "app"
Your Spacefile looks good, proceeding with your push!!
Successfully started your build!
Successfully pushed your Spacefile!
📦 Pushing your code & running build process...
2023/03/07 13:56:31 Parsing Spacefile...
2023/03/07 13:56:31 Packaging code for micros...
2023/03/07 13:56:31 Packaging dependencies for micros...
created revision: lamprey-pqyy
💻 Updating your Builder instance with the new revision...
starting update...
fetching release configuration...
allocating resources..
configuring resource 1 out of 1...
🎉 Successfully pushed your code and updated your Builder instance!
Run space release to create a release that others can install.
Builder instance: https://example-1-r941271.deta.app

If this process is too long for you and you just want to push your code and start the build you can pass the --skip-logs flag to skip the build logs and exit the command once the build is started. You can then view the status of your build in the Builder UI:

Terminal window
$ space push --skip-logs
Validating Spacefile...
Micro "app"
Your Spacefile looks good, proceeding with your push!!
Successfully started your build!
Successfully pushed your Spacefile!
📦 Pushing your code & running build process...
🎉 Successfully pushed your code!
Skipped following build process, please check build status manually:
https://deta.space/builder/xyz?event=goshawk-scgd

New space open command

To make it easier to go from your terminal to the Builder UI we have added a new space open command. This command will open your current project in the Builder UI in your browser.

Terminal window
space open

Bug Fixes and Improvements

  • Fix issue with invalid access token or unauthorized error even when token is valid in Windows
  • Fix Micro src being shown instead of the engine for engine validation errors

Thank you for all the valuable feedback — please continue to share your thoughts as we work to build and improve Space.