• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

astronomer / astro-cli / d8c087d9-3e34-4a26-9912-4e9425408752

04 Feb 2026 08:31PM UTC coverage: 32.799% (+0.005%) from 32.794%
d8c087d9-3e34-4a26-9912-4e9425408752

push

circleci

jeremybeard
Fix linting

18 of 95 new or added lines in 9 files covered. (18.95%)

5 existing lines in 1 file now uncovered.

21211 of 64670 relevant lines covered (32.8%)

8.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cmd/api/api.go
1
// Package api provides the 'astro api' command for making authenticated API requests.
2
package api
3

4
import (
5
        "io"
6
        "os"
7

8
        "github.com/spf13/cobra"
9
)
10

11
// NewAPICmd creates the parent 'astro api' command.
12
func NewAPICmd() *cobra.Command {
×
13
        return NewAPICmdWithOutput(os.Stdout)
×
14
}
×
15

16
// NewAPICmdWithOutput creates the parent 'astro api' command with a custom output writer.
17
func NewAPICmdWithOutput(out io.Writer) *cobra.Command {
×
18
        cmd := &cobra.Command{
×
19
                Use:   "api",
×
20
                Short: "Make authenticated API requests to Astronomer services",
×
21
                Long: `Make authenticated HTTP requests to Astronomer APIs and print responses.
×
22

×
23
The 'astro api' command provides direct access to Astronomer's REST APIs,
×
24
similar to 'gh api' for GitHub or 'vercel api' for Vercel.
×
25

×
26
Available subcommands:
×
27
  cloud    Make requests to the Astro Cloud API (api.astronomer.io)
×
28

×
29
Use "astro api [command] --help" for more information about a command.`,
×
30
                Run: func(cmd *cobra.Command, args []string) {
×
NEW
31
                        _ = cmd.Help()
×
32
                },
×
33
        }
34

35
        cmd.AddCommand(NewCloudCmd(out))
×
36

×
37
        return cmd
×
38
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc