Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qwikdev/create-astro

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qwikdev/create-astro

Interactive CLI for create @QwikDev/astro projects.

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Create @qwikdev/astro 🎉

The Ultimate Starter for QwikDev/Astro Projects

Seamlessly scaffold content-driven web projects with the power of QwikDev/Astro. Whether you're building blazing-fast blogs, portfolios, or scalable applications, this CLI has you covered.


🚀 Installation & Usage

🧑‍💻 Usage

Run the following command using your preferred package manager:

  • With NPM:

    npm create @qwikdev/astro@latest [destination] [adapter] [...options]
    
  • With Yarn:

    yarn create @qwikdev/astro [destination] [adapter] [...options]
    
  • With PNPM:

    pnpm create @qwikdev/astro [destination] [adapter] [...options]
    
  • With Bun:

    bun create @qwikdev/astro [destination] [adapter] [...options]
    

🛠️ Flags

Arguments

Customize the command with the following arguments:

NameTypeDefault valueDescription
destinationString./qwik-astro-appDirectory of the project.
adapter"deno" or "node" or "none"noneServer adapter.
Options

Enhance your project setup with these additional flags:

NameShortcutDescription
--help-hDisplay all available options.
--template-tUse an Astro template.
--add / --no-add-a / --no-aAdd QwikDev/astro to an existing project.
--force / --no-force-f / --no-fOverwrite target directory, if needed.
--copy / --no-copy-c / --no-cCopy files without overwriting.
--biome / --no-biomeUse Biome instead of ESLint/Prettier.
--install / --no-install-i / --no-iAutomatically install dependencies.
--git / --no-gitInitialize a Git repository.
--ci / --no-ciAdd CI workflow.
--yes-yAccept all default configurations.
--no-nDecline all default configurations.
--dry-runSimulate the setup process without executing.

💡 Examples

The easiest way to explore QwikDev/Astro on your machine is by running the following command:

npm create @qwikdev/astro@latest
  1. Start Without Any Template

    You can create a project with no template to keep it minimal or customize it from scratch. This approach uses only the default starter kit provided by the integration:

    npm create @qwikdev/astro@latest my-project
    

    To skip all prompts and initialize without a template automatically:

    npm create @qwikdev/astro@latest my-project --yes
    
  2. Add Qwik/Astro to an Existing Project**

    If you already have an existing project and want to integrate QwikDev/Astro without creating a new project, you can use the --add option:

    npm create @qwikdev/astro@latest my-existing-project --add
    
  3. Use an Official Template

    You can initialize a project with a pre-built template (e.g., minimal, portfolio, starlight, blog, etc.):

    npm create @qwikdev/astro@latest --template <name>
    

    The full list of templates is quite long, so make sure to check it out to find one that fits your project needs.

  4. Clone a Specific GitHub Repository

    You can use any GitHub repository as a template:

    npm create @qwikdev/astro@latest --template <user>/<repo>
    

    For a broader range of community-provided templates, visit the Awesome Astro repository.

  5. Use Nested GitHub Examples

    Paths to examples nested inside a GitHub repository are also supported:

    npm create @qwikdev/astro@latest --template <user>/<repo>/path/to/example
    
  6. Advanced Use Cases

    You can combine multiple flags to set up your project exactly as needed:

    npm create @qwikdev/astro my-existing-project --add --copy --template portfolio --yes --no-git --no-ci
    

📦 API

For developers looking to programmatically access the CLI functionality:

  1. Basic Usage

    Run the CLI programmatically without arguments:

    import createQwikAstro from '@qwikdev/create-astro';
    
    createQwikAstro();
    
  2. With Custom Arguments

    Specify arguments directly:

    import { run } from '@qwikdev/create-astro';
    
    run(["./qwik-astro-app", "node"]);
    
  3. Definition Types

    Define the structure of the CLI options and arguments:

    export type Definition = {
      destination: string;
      adapter?: "deno" | "node" | "none";
      template?: string;
      add?: boolean;
      force?: boolean;
      copy?: boolean;
      biome?: boolean;
      install?: boolean;
      git?: boolean;
      ci?: boolean;
      yes?: boolean;
      no?: boolean;
      dryRun?: boolean;
    };
    
  4. Default Settings

    Here are the default configurations:

    export const defaultDefinition = {
      destination: "./qwik-astro-app",
      adapter: "none",
      template: "",
      add: undefined,
      force: undefined,
      copy: undefined,
      biome: undefined,
      install: undefined,
      git: undefined,
      ci: undefined,
      yes: undefined,
      no: undefined,
      dryRun: undefined
    } as const;
    

🌐 Community

Keywords

FAQs

Package last updated on 04 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc