Toystack CLI

A powerful and intuitive command-line interface for seamlessly interacting with the Toystack platform — your modern cloud deployment solution.
Visit Toystack.ai to learn more.
📥 Installation
Install the Toystack CLI globally via npm:
npm install -g toystack
⚙️ Usage
Run the following command to view available options:
toystack
or
npx toystack
This will list all the available commands, including login, deploy, ls, and logout.
🚀 Commands
toystack deploy
– Deploy Without Login
For React and Astro.js projects, you can deploy without logging in. This will deploy the project to the Toystack platform.
toystack deploy
or
npx toystack deploy
toystack login
– Login to Toystack
Authenticate using your Toystack account. This will provide a link for logging in. Once logged in, you can use other commands.
toystack login
or
npx toystack login
toystack ls
– List Repositories
Lists all the repositories that you have access to on the Toystack platform.
toystack ls
or
npx toystack ls
toystack deploy <repository-name> <branch-name>
– Deploy Project
Deploy any repository that is active on the Toystack platform.
repository-name
is the name of the repository you want to deploy (case sensitive).
branch-name
is the branch you want to deploy (case sensitive).
If not provided, it defaults to the repository and branch of the current directory.
toystack deploy <repository-name> <branch-name>
or
npx toystack deploy <repository-name> <branch-name>
toystack logout
– Log Out
Log out from your Toystack account.
toystack logout
or
npx toystack logout
🛠️ Additional Information
- Ensure that you are in a directory with an active Git repository when using deployment commands.
- For help with any command, use
toystack <command> --help
.
Happy deploying with Toystack! 🚀