Skip to content

fix(cli): add --header flag to all CLI subcommands that make RPC calls #1392

@whoAbhishekSah

Description

@whoAbhishekSah

Summary

Many CLI subcommands that make RPC calls are missing the --header / -H flag, making it impossible to pass authentication headers (e.g., session cookies). Only create subcommands and preferences commands currently support it.

Affected commands

Command create list view edit
organization -H missing missing missing
project -H missing missing missing
group -H missing missing missing
user -H missing missing missing
role -H missing missing missing
permission -H missing missing missing
policy -H missing - missing
namespace - missing missing -
preferences - -H -H -H

Expected behavior

All subcommands that make RPC calls should support --header / -H for passing authentication headers:

./frontier organization list -H "Cookie:sid=<session>"
./frontier user view <id> -H "Cookie:sid=<session>"
./frontier namespace list -H "Cookie:sid=<session>"

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions