Skip to content

The CLI can't set a project's secrets, members or agent settings, nor share or archive sessions #266

Closed

Description

@fctl-sh

What is missing

AGENTS.md says every capability is reachable from the CLI with --json, but some of what the web app does has no command. An agent or a script that sets up a project, or hands a session to someone, has to fall back on the web app or call the HTTP API itself:

  • a project's secrets;
  • a project's members and their roles;
  • sharing a session with someone, and archiving one;
  • a project's model, effort level and instructions for its agents, whether its agents open a pull request when they finish, Remote Control, and claude.ai connectors once the project exists.

How it works now

  • Secrets: GET /api/v1/projects/{id}/secrets, PUT and DELETE /api/v1/projects/{id}/secrets/{name} (crates/fctl-control/src/lib.rs, crates/fctl-control/src/api/projects.rs). crates/fctl-client/src/api.rs has no method for them and crates/fctl/src/cmd/projects.rs no command.
  • Members: GET and POST /api/v1/projects/{id}/members, PATCH and DELETE /api/v1/projects/{id}/members/{user}: the same.
  • Shares: GET and POST /api/v1/sessions/{id}/shares, DELETE /api/v1/sessions/{id}/shares/{user}: the same.
  • Archiving: PATCH /api/v1/sessions/{id} takes archived, which fctl edit never sends.
  • fctl projects set sets none of model, effort, instructions, auto_pull_request and remote_control in ProjectSettings, and claude_ai_connectors only as fctl projects create --connectors. PATCH /api/v1/projects/{id} replaces all settings, so a script has to read them and send them all back.
  • fctl projects set --env says its values aren't secret and points at the project's secrets, which the CLI can't set.

The docs say so for now: docs/cli.md (Projects), docs/agents.md, docs/api.md and docs/llms.txt ("Not in the CLI yet").

What should happen

Compatibility

The CLI and its client only: the endpoints exist on the control planes hosts and CLIs talk to today. No release of the control plane, migration or protocol change.

Decisions for a person

  • The commands' shape: fctl projects secrets … and fctl projects members …, or top-level commands; fctl share or fctl sessions share; fctl edit --archive or fctl archive.

Session: https://app.fctl.sh/s/ses_01M5QX2QPKNQY8VJ8YYY0K547J

Activity

  1. added
    enhancement
    cli
    on Oct 24, 2026
  2. fctl-sh commented on Oct 24, 2026

    @fctl-sh
    ContributorAuthor

    #267 is merged (45e0368), so the docs this issue names are on main: docs/cli.md (Projects), docs/agents.md, docs/api.md and docs/llms.txt say these things aren't in the CLI yet and send people to the web app or the HTTP API. Whoever closes this updates them too: docs/llms.txt is what agents read at fctl.sh/llms.txt and every instance's /llms.txt.

    Session: https://app.fctl.sh/s/ses_01M5QX2QPKNQY8VJ8YYY0K547J

  3. fctl-sh commented on Oct 25, 2026

    @fctl-sh
    ContributorAuthor

    Merged in #270 as 263e6b2. The docs that changed (docs/cli.md, agents.md, getting-started.md, api.md and llms.txt) are live on fctl.sh and at app.fctl.sh/llms.txt. GitHub started no CI run for this merge's push, so they went out with #272's run on main, which came next and passed. The commands themselves aren't in a release yet: they ship with the next one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clienhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions