Skip to content

Per project config doesn't support org id #363

Description

@paulcdejean

If you want to have one project use one org, and another project use another org, even if your account has access to both orgs, you need to re login to switch projects.

According to claude:

No — .infisical.json has no organization field. In the CLI source, the config file model only supports these fields:

type WorkspaceConfigFile struct {
    WorkspaceId                   string            `json:"workspaceId"`
    DefaultEnvironment            string            `json:"defaultEnvironment"`
    GitBranchToEnvironmentMapping map[string]string `json:"gitBranchToEnvironmentMapping"`
    DefaultSecretPath             string            `json:"defaultSecretPath,omitempty"`
    Domain                        string            `json:"domain,omitempty"`
}

An organizationId key would be silently ignored. The organization lives in your login session token, not in project config — which is why one login can only "see" one org at a time.

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