> ## Documentation Index
> Fetch the complete documentation index at: https://site.aspect.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Aspect CLI — Aspect Build Blog

> 6 Aspect CLI posts from the Aspect Build engineering blog on Bazel and developer productivity.

export const BlogCard = ({title, description, date, authors, tags, image, href, children}) => {
  const tagList = tags ? tags.split(", ").filter(Boolean) : [];
  const tagSlug = t => t.toLowerCase().replace(/&/g, "").replace(/\+/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
  const formattedDate = date ? new Date(date + "T00:00:00").toLocaleDateString("en-US", {
    year: "numeric",
    month: "short",
    day: "numeric"
  }) : "";
  const resolvedImage = typeof image === "string" && image.trim() === "" ? null : image;
  return <div data-tags={tagList.join(",")} className="blog-card flex flex-col rounded-xl border border-zinc-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 overflow-hidden hover:shadow-lg transition group">
      <a href={href} className="block">
        {resolvedImage ? typeof resolvedImage === "string" ? <img noZoom src={resolvedImage} alt={title} className="w-full" style={{
    height: "180px",
    objectFit: "cover"
  }} /> : <div className="blog-card-image">{resolvedImage}</div> : children ? <div className="blog-card-image">{children}</div> : null}
        <div className="px-5 pt-5">
          <h3 className="text-lg font-semibold text-zinc-900 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition">
            {title}
          </h3>
          {description && <p className="mt-2 text-sm text-zinc-600 dark:text-zinc-400 line-clamp-2">
              {description}
            </p>}
          <div className="flex items-center gap-2 mt-3 text-xs text-zinc-500 dark:text-zinc-400">
            {authors && <span>{authors}</span>}
            {authors && formattedDate && <span>·</span>}
            {formattedDate && <span>{formattedDate}</span>}
          </div>
        </div>
      </a>
      {tagList.length > 0 && <div className="flex flex-wrap gap-1.5 px-5 pb-4 pt-3 mt-auto">
          {tagList.map(tag => <a key={tag} href={"/blog/tags/" + tagSlug(tag)} className="px-2 py-0.5 rounded-full text-xs bg-zinc-100 dark:bg-zinc-800 text-zinc-600 dark:text-zinc-400 hover:bg-blue-100 dark:hover:bg-blue-900/40 hover:text-blue-700 dark:hover:text-blue-300 transition">
              {tag}
            </a>)}
        </div>}
    </div>;
};

export const MarketingPage = () => <div className="marketing-page-marker" style={{
  display: "none"
}} />;

export const Section = ({children, className = "", gray = false, dark = false, id}) => <section id={id} className={`w-full flex justify-center px-4 py-16 md:py-24 ${gray ? "bg-gray-50 dark:bg-zinc-900" : dark ? "bg-zinc-900 dark:bg-zinc-950" : ""} ${className}`}>
    <div className="w-full" style={{
  maxWidth: "1140px"
}}>
      {children}
    </div>
  </section>;

export const Hero = ({title, subtitle, badge, eyebrow, heroImageClassName = "", primaryCta, primaryHref = "#", secondaryCta, secondaryHref = "#", centered = true, children}) => <section className="w-full flex justify-center px-4 pt-16 pb-16 md:pt-24 md:pb-24" style={{
  background: "linear-gradient(180deg, var(--hero-gradient-start, #f8fafc) 0%, var(--hero-gradient-end, #ffffff) 100%)"
}}>
    <div className="w-full" style={{
  maxWidth: "1140px"
}}>
      {centered && !children ? <div className="flex flex-col items-center text-center">
          {badge && <div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-blue-50 dark:bg-blue-900/30 border border-blue-200 dark:border-blue-700 text-blue-700 dark:text-blue-300 text-sm font-medium mb-6">
              {badge}
            </div>}
          {eyebrow && <div className="text-xs font-semibold tracking-widest uppercase text-blue-600 dark:text-blue-400 mb-4">
              {eyebrow}
            </div>}
          <h1 className="text-4xl md:text-5xl font-semibold text-zinc-900 dark:text-white leading-tight tracking-tight" style={{
  maxWidth: "820px"
}}>
            {String(title).split(/\\n|\n/).map((line, i) => i ? [<br key={i} />, line] : line)}
          </h1>
          {subtitle && <div className="subtitle-gap text-lg md:text-xl text-zinc-500 dark:text-zinc-300 leading-relaxed" style={{
  marginTop: "1rem",
  maxWidth: "600px"
}}>
              {subtitle}
            </div>}
          <div className="flex flex-wrap gap-3 mt-10 justify-center">
            {primaryCta && <a href={primaryHref} className="inline-flex items-center px-6 py-3 rounded-lg bg-blue-600 text-white font-semibold hover:bg-blue-700 transition shadow-sm">
                {primaryCta}
              </a>}
            {secondaryCta && <a href={secondaryHref} className={`inline-flex items-center px-6 py-3 rounded-lg border border-zinc-300 dark:border-zinc-600 text-zinc-700 dark:text-zinc-200 font-semibold hover:bg-zinc-50 dark:hover:bg-zinc-800 transition ${secondaryHref === "/request-demo" ? "demo-gradient-btn" : ""}`}>
                {secondaryCta}
              </a>}
          </div>
        </div> : <div className="flex flex-col md:flex-row items-center gap-10 md:gap-16">
          <div className="flex-1 min-w-0">
            {badge && <div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-blue-50 dark:bg-blue-900/30 border border-blue-200 dark:border-blue-700 text-blue-700 dark:text-blue-300 text-sm font-medium mb-6">
                {badge}
              </div>}
            {eyebrow && <div className="text-xs font-semibold tracking-widest uppercase text-blue-600 dark:text-blue-400 mb-4">
                {eyebrow}
              </div>}
            <h1 className="text-4xl md:text-5xl font-semibold text-zinc-900 dark:text-white leading-tight tracking-tight">
            {String(title).split(/\\n|\n/).map((line, i) => i ? [<br key={i} />, line] : line)}
          </h1>
            {subtitle && <div className="subtitle-gap text-lg md:text-xl text-zinc-500 dark:text-zinc-300 leading-relaxed" style={{
  marginTop: "1rem"
}}>
                {subtitle}
              </div>}
            <div className="flex flex-wrap gap-3 mt-8">
              {primaryCta && <a href={primaryHref} className="inline-flex items-center px-6 py-3 rounded-lg bg-blue-600 text-white font-semibold hover:bg-blue-700 transition shadow-sm">
                  {primaryCta}
                </a>}
              {secondaryCta && <a href={secondaryHref} className={`inline-flex items-center px-6 py-3 rounded-lg border border-zinc-300 dark:border-zinc-600 text-zinc-700 dark:text-zinc-200 font-semibold hover:bg-zinc-50 dark:hover:bg-zinc-800 transition ${secondaryHref === "/request-demo" ? "demo-gradient-btn" : ""}`}>
                  {secondaryCta}
                </a>}
            </div>
          </div>
          {children && <div className={`flex-1 min-w-0 hero-image ${heroImageClassName}`}>
              {children}
            </div>}
        </div>}
    </div>
  </section>;

<MarketingPage />

<Hero title="Posts tagged Aspect CLI" subtitle="Engineering writing from the Aspect team on Aspect CLI." centered={true} />

<Section>
  <div className="mb-8">
    <a href="/blog" className="text-blue-600 dark:text-blue-400 font-semibold hover:underline">← All posts</a>
    <span className="mx-2 text-zinc-400">·</span>
    <a href="/blog/tags" className="text-blue-600 dark:text-blue-400 font-semibold hover:underline">Browse all tags</a>
  </div>

  <div className="marketing-grid-3">
    <BlogCard title="Which tests are affected? Ask the cache, run nothing." description="How aspect cache diff figures out which tests a change can break, using only a remote cache and Bazel's gRPC log, without executing anything." date="2026-06-19" authors="Şahin Yort" href="/blog/selective-testing-with-cache-diff" tags="Aspect CLI, Remote Cache, CI/CD, Bazel">
      <img noZoom src="https://mintcdn.com/aspectbuild/47KirY4nMIQxGx6F/images/blog/stock/box-selected.jpg?fit=max&auto=format&n=47KirY4nMIQxGx6F&q=85&s=7e551722ebee512510b1414a80a96bdc" alt="" width="1200" height="743" data-path="images/blog/stock/box-selected.jpg" />
    </BlogCard>

    <BlogCard title="Start a new Bazel project with aspect init" description="aspect init is now a native Aspect CLI command, and the language starter templates live at github.com/aspect-starters with a Use this template button." date="2026-06-14" authors="Greg Magolan" href="/blog/aspect-init-and-starters" tags="Bazel, Aspect CLI">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-b7f01104a1.jpeg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=558844bd2581ad93d62fbed4b786ab1d" alt="" width="1600" height="1067" data-path="images/blog/hashnode/hn-b7f01104a1.jpeg" />
    </BlogCard>

    <BlogCard title="Device management: tools on your developers PATH" description="Explore easier developer tool distribution with Bazel and direnv for seamless environment setup and management in your development workflow" date="2025-05-13" authors="Alex Eagle" href="/blog/bazel-devenv" tags="Bazel, Aspect CLI">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-07d3b9a0c1.jpeg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=29e8c046447aaded998231ce2a1acd27" alt="" width="1296" height="810" data-path="images/blog/hashnode/hn-07d3b9a0c1.jpeg" />
    </BlogCard>

    <BlogCard title="Running local tools installed by Bazel" description="Manage command-line tools efficiently with Bazel. Streamline workflows, ensure version consistency, and boost development productivity with this approach." date="2024-04-05" authors="Alex Eagle" href="/blog/run-tools-installed-by-bazel" tags="Bazel, Aspect CLI">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-166ab5a701.jpeg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=892906b71a45590bed045f9e206153cb" alt="" width="1600" height="1068" data-path="images/blog/hashnode/hn-166ab5a701.jpeg" />
    </BlogCard>

    <BlogCard title="Presets for bazelrc" description="Discover how Bazel presets can help configure sensible default options, improve efficiency, and avoid common bugs in new repositories." date="2023-02-27" authors="Alex Eagle" href="/blog/bazelrc-presets" tags="Bazel, Aspect CLI">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-d0f296e46e.jpeg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=0326b7bdf1127ce560fab3311664806c" alt="" width="1600" height="1020" data-path="images/blog/hashnode/hn-d0f296e46e.jpeg" />
    </BlogCard>

    <BlogCard title="Customize Bazel with Aspect CLI plugins" description="Customize Bazel effortlessly with Aspect CLI plugins for tailored developer workflows and enhanced control over Bazel deployments" date="2022-03-17" authors="Alex Eagle" href="/blog/customize-bazel-with-aspect-cli" tags="Aspect CLI, Bazel">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-e93e7c9b9c.jpg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=060d8ac91890d1d3b084bdc711cf6d2b" alt="" width="4032" height="3024" data-path="images/blog/hashnode/hn-e93e7c9b9c.jpg" />
    </BlogCard>
  </div>
</Section>
