Commands
Run ifc --help or ifc <command> --help for full flag details.
Project setup
| Command | Description |
|---|---|
ifc init | Create ifc.yaml and .ifc/ in the current directory |
ifc login | Authenticate with the ifc7.dev hub (device flow) |
Owned interfaces
| Command | Description |
|---|---|
ifc add | Track a local specification file as an owned interface |
ifc scan [path] | Find untracked OpenAPI / JSON Schema files and add them |
ifc commit | Record owned interface files into the local manifest |
ifc status | Show whether owned files differ from the local manifest |
ifc diff <name|slug> | Unified diff of an owned file vs the latest manifest revision |
ifc checkout [name|slug]... | Update owned files from the local manifest (--force overwrites) |
ifc lint [name|path]... | Lint owned interfaces or spec files |
ifc push | Push committed owned interfaces to the hub |
Remote interfaces
| Command | Description |
|---|---|
ifc use | Track a remote hub interface in this project |
ifc fetch | Pull tracked interfaces from the hub into the local manifest |
Analysis
| Command | Description |
|---|---|
ifc compare <before> <after> | Compare two specs for breaking changes |
Coming soon
| Command | Description |
|---|---|
ifc gen | Generate code from an interface |
Tips
- Prefer
ifc lintbeforecommitandpush. - After
fetchfor owned interfaces, usecheckoutso disk files match the manifest. - Hub credentials from
ifc loginalso work with the MCP server.