Command-line interface (CLI) for uploading and deploying projects to CodeSandbox, an online code editor tailored for web applications. As of version 2.2.3, this tool allows developers to quickly upload local projects as templates or sandboxes using a single command. It requires authentication to prevent abuse. The library is relatively simple, with no major competitors in the same niche; it is maintained as part of the CodeSandbox ecosystem. Release cadence is low, with the last release in May 2020.
npm install codesandboxVerified import paths — ran on the pinned version, not inferred.
Install the CLI globally, navigate to a project, and deploy it to CodeSandbox with a single command. Use --output=url to get the sandbox URL directly.
Run 'codesandbox login' first or authenticate interactively when prompted.
Ensure your project has a valid package.json and is a standard web project (e.g., React, Vue, etc.).
Check CodeSandbox documentation for API updates; consider using the official web interface instead.
Run 'codesandbox login' and authenticate via the browser.
Run the command from a directory containing a package.json, or specify a path that contains one.
Re-authenticate by running 'codesandbox login' again.